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

Im using jquery and getJSON to populate a drop down list based on user input in a custom modified NewForm.aspx. The dropdown populates just fine but when the form is saved the selected choice value is not saved. Ideas? Thanks

share|improve this question
add comment

1 Answer

Without seeing your code it's difficult to pinpoint it exactly. But at a high level, the selected value in the generated drop down needs to be pushed to a hidden list field so it can be submitted and saved.

share|improve this answer
    
Thanks Pirate, That is what I am figuring out. Can you access/update the hidden field list with just jquery or do you need to use the SP COM for js? Also how do you find the hidden list? Thanks for your time –  Angst May 3 '13 at 22:07
    
You can use jQuery for that so long as you get the right selector for your form field. –  PirateEric May 4 '13 at 18:07
    
Anyway to find the corresponding hidden field? A lookup field will have an optHid attribute that gives the id of its hidden field but the choice field does not have one. I did a search on the html output on all the input type='hidden' and could not find anything. –  Angst May 6 '13 at 15:19
add comment

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.