Please help! :-)
I have a form whereby customers can dynamically add more items:
https://www.hunterpanels.com/wall-quote-form
Then in the email action I have this:
But it does not create separate rows for each additional entry and instead adds them all to the same table row which does not display correctly.
What do I need to change to have the email generate a new table row for each of them?
I have hopefully attcahed a backup of the form if that helps.
Thanks
Lee
I have a form whereby customers can dynamically add more items:
https://www.hunterpanels.com/wall-quote-form
Then in the email action I have this:
<tr style="background-color: #D9D9D9">
{var:loopproductname}
{var:loopproductquantity}
{var:loopproductprice}
{var:loopprocudtthickness}
{var:loopproductescalators}
</tr>
But it does not create separate rows for each additional entry and instead adds them all to the same table row which does not display correctly.
What do I need to change to have the email generate a new table row for each of them?
I have hopefully attcahed a backup of the form if that helps.
Thanks
Lee
What's the field name? I'm guessing you don't have square brackets at the end?
Thanks for the reply, apologies I do not know what you mean, there are a number of indiviudal fields in a repeater action.
Yep but if you want the data in an array, and not just the last value from the last repeater, the name of the field needs to end in [].
Healyhatman,
Thanks for your time, but I'm struggling!
Please view:
This image shows how I have the repeater and the fields setup.
Then the email comes through with this. Which shows the multiple repeated entries but not in separate rows.
I tried your advice and added to the end of the name but then the form does not send and gets stuck in a loop with an error stating no value was entered - see
this
My apologies, this is probably a simple fix but I just do not have enough understanding to work it out!
Thank you
Lee
Edited to correct links
Thanks for your time, but I'm struggling!
Please view:
This image shows how I have the repeater and the fields setup.
Then the email comes through with this. Which shows the multiple repeated entries but not in separate rows.
I tried your advice and added to the end of the name but then the form does not send and gets stuck in a loop with an error stating no value was entered - see
this
My apologies, this is probably a simple fix but I just do not have enough understanding to work it out!
Thank you
Lee
Edited to correct links
Hi Lee,
I think that the problem is the way that you have set up the on Submit loop actions - as far as I can see each of these takes all the values for e.g. product_name and collates them into a string: <td>name1</td><td>name2</td> . . .
I think you probably need custom PHP to loop through the data and build a data item like this <tr><td>name1</td><td>quantity1</td> . . .
Bob
I think that the problem is the way that you have set up the on Submit loop actions - as far as I can see each of these takes all the values for e.g. product_name and collates them into a string: <td>name1</td><td>name2</td> . . .
I think you probably need custom PHP to loop through the data and build a data item like this <tr><td>name1</td><td>quantity1</td> . . .
Bob
Bob
Thanks for the reply, I undertsand what you are syaing, but unfortunately don't have the php skills to know how or what to code to create that custom php loop :-(
Lee
Thanks for the reply, I undertsand what you are syaing, but unfortunately don't have the php skills to know how or what to code to create that custom php loop :-(
Lee
Hi Lee,
I'm up to my eyebrows at the moment but will see if I can work it out when I have a moment or six to spare.
Bob
I'm up to my eyebrows at the moment but will see if I can work it out when I have a moment or six to spare.
Bob
Greyhead,
Thanks you for your time, it is most appreciated. I'll certainly buy you a coffe! :-)
Lee
Thanks you for your time, it is most appreciated. I'll certainly buy you a coffe! :-)
Lee
You need to login to be able to post a reply.
