hi, I'm having a problem with inserting dynamically created hidden fields in to the email.
ie: when the form runs it goes through a for loop and creates fields
<input value="0x937" id="code0" name="code0" type="hidden" />
<input value="0x937" id="code1" name="code1" type="hidden" />
etc ....
So a number of fields are generated dynamically.
I can get those fields in the email just fine as well {code0} {code1} etc ..
My issue is to do that right now I'm manually putting them into the template. If there are only 2 fields produced on the form and I put 10 in the template . I end up with the proper data for the first 2, then {code3}{code4}.....{code9}{code10}. For fields that didn't get generated.
I need the template to only show the fields that were produced. There is no way to tell before hand how many fields will get generated. To put each one into the email template manually.
Any help would be greatly appreciated.
ie: when the form runs it goes through a for loop and creates fields
<input value="0x937" id="code0" name="code0" type="hidden" />
<input value="0x937" id="code1" name="code1" type="hidden" />
etc ....
So a number of fields are generated dynamically.
I can get those fields in the email just fine as well {code0} {code1} etc ..
My issue is to do that right now I'm manually putting them into the template. If there are only 2 fields produced on the form and I put 10 in the template . I end up with the proper data for the first 2, then {code3}{code4}.....{code9}{code10}. For fields that didn't get generated.
I need the template to only show the fields that were produced. There is no way to tell before hand how many fields will get generated. To put each one into the email template manually.
Any help would be greatly appreciated.