0

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

1 Answer 1

1

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.

3
  • 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
    Commented May 3, 2013 at 22:07
  • You can use jQuery for that so long as you get the right selector for your form field. Commented May 4, 2013 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
    Commented May 6, 2013 at 15:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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