[Plugin: WordPress Form Manager] Dynamic Input Values
-
I’m trying using a database table to update a number of selects dynamically through JSON, but the form won’t save the submitted data.
Here’s the set up:
Form has a select (drop-down) registered via the plug-in with a single dummy option.The data page for this form shows the select as a column.. which is perfect.
My form on the front end is manipulated by javascript to update the select with new options, which are pulled from a database. This works. I’m even updating the hidden input value to the new number of options within the select. (Noticed that when comparing to the default US States select, which is generated by the plug-in).
Javascript is also assigning 0-index values to all of the options, and adding the ‘selected’ attribute to the correct option.
On submit, however, the value for my dynamic select is not saved to the database (nor sent via email).
Tried digging through the plug-in to see what I’m missing, and I’m thinking I’ll have to push my items to the getter_script? A bit lost here, since I thought I had covered everything… below is a snippet of userscripts.js that I think I need to modify:
[Code moderated as per the Forum Rules. Please use the pastebin]
Thanks for your help.
EDIT: I can’t share the link with you for confidentiality reasons, but I’ll try to share what I can.
- The topic ‘[Plugin: WordPress Form Manager] Dynamic Input Values’ is closed to new replies.