Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Is it possible to read the order # (which is alpha-numeric) from URL (Sharepoint document library) and automatically populate 2 drop down box only for newform

for example: url is https://www.abc.com/sites/longhorn/SPteam23 documents/allitems.aspx

So the first drop down should be automatically populated with SP and team23 for 2nd drop down.

share|improve this question

1 Answer 1

You could do it by provisionning a custom NewForm.aspx and adding some Javascript that would parse the URL, and then populate the dropdown values.

share|improve this answer
hmm. Sound Good but do you have any link(s) or sample code. –  Bob Dinero Dec 3 '10 at 21:12
I don't have specific code, right now, 'cause I never had to do it, but you could check on jQuery for the Javascript part, and check the following link to get to have a custom NewForm.aspx risetime.com/blog/archive/2009/06/03/… –  Sébastien Levert Dec 4 '10 at 18:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.