Hello,
I'm using a multiplier container to get multiple values for a specific form area. When submit is clicked it only received the most recent value of the multiplier container and ignores the previous values.
What can i do to allow it send all values.
Many thanks
Hi Trayone,
I think that you need to give the multiple elements array names - ending in [] e.g. input_name[]
You may then need to add a Handle Arrays action in the On Submit event to convert the arrays back to strings depending on what you plan to do with them.
Bob
Hi trayone,
All of the Company inputs have the same name 'Company' so you will only get the last one. You either need to name them company[] or, probably better, call the first one company_0 and let ChronoForms rename the others company_1, company_2, etc. (See the settings on the Multiplier tab of the parent Conatiner.)
Bob
Hi Bob,
Seems to work. thanks. but just another issue, it only mails the first item, i believe i will need a script to cycle through to generate the required html to be sent through email. Can you point me in the right direction. Thanks for all the help so far.
Trayone
HI Trayone,
Which version did you use?
Either way the neatest solution will be to use PHP to display only the entries where values have been set. You could just put a whole lot of entries in the template to allow for the maximum number but this looks untidy.
Bob
Hi Bob,
Exactly what i thought, but i am at a loss on where to begin with the PHP.
Trayone
Hi Trayone,
What do you see in the Debugger output for these inputs?
Bob