We use and external data lookup and in turn populate form elements.
One of the pieces retrieved is added to a Select element on the form. All of that is working just fine.
An inspection of the HTML shows the items have been added, however, when the form is submitted a SharePoint error is thrown and the form submission fails.
If a static Option (not added by jQuery) in the Select is chosen the form submits just fine.
- We are using a REST call via jQuery and retrieving JSON
- JSON is well formed
- We then loop over the options and append them to the Select
class="nf-choice-select nf-associated-control" id="ctl00_SPWebPartManager1_g_f3cb44cb_28a3_493f_8344_c409b53f4e86_ctl00_ListForm2_formFiller_FormView_ctl18_f1b815d2_ac95_4bc5_8e56_236efde79a32"
<option value="51363800002">Card - 51363800002</option>
<option value="20008">Book - 20008</option>
<option value="10006">Mortgage - Long term - 10006</option>
<option value="10006">Mortgage - Short term - 10006</option>
Other is added via the Nintex Form Control
All other options are added via jQuery