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


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.

  • 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. – Eric Alexander 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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