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
Asked
Active
Viewed 916 times
1 Answers
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.
Eric Alexander
- 43,293
- 10
- 53
- 93
-
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 03 '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 04 '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 06 '13 at 15:19