Need to submit form with dynamically created fields

  • Profile Image
    Asked on November 13, 2017 at 04:54 PM

    I have a very complex form, I have checkboxes that are populated by api data, I need the dynamically created checkboxes when clicked to show a textarea. When i submit the form the data from the text areas is not getting sent. To recreate this you need to select a radio in the Ad Format section, then the Media Channel section, then select a value from the target tactics section, you will see the textarea that appears when the tactic is selected. When the form submits everything is there except for the values in the dynamically created textareas

  • Profile Image
    Answered on November 13, 2017 at 06:58 PM

    Since the text area is the only element not included in the form itself, the ID's and submit functionality may correctly assigned.  The dynamically inserted checkbox options do look to send but the checkbox field itself is added to the form with proper ID's.

    My recommendation would be to add the text field to the form and dynamically update the field field, rather than trying to insert the field in the page.