How to send simple ordering list through form?
This is an open discussion with 5 replies, filed under General.
Search
Your email body input field is inside the foreach and each itteration is overriding the previous value in the foreach. Have you thought about using the storage field to build your array of options and grab that output to send as email? Nils and Michael-e put it together I believe.
Hi moonoo, thanks for your help.
Building an array sounds reasonable to me. But what exactly is the storage field?
Storage isn't a field, it's an extension that handles sessions differently, so it's use is through events.
My bad, wrong wordage.. Storage extension is what I meant.
OK, got it. This is the extension: storage
Will try this out, thanks for your help.
Create an account or sign in to comment.
Hello,
I am trying to build a very simple ordering form where people can pick from a hand full of products and also select a corresponding amount for each product.
The user data submitted through the form above should be converted to and sent as an email.
This works for the most part but how can I list the products the user ordered and their corresponding amounts?
I tried to solve this through a hidden form field inside the
for-each
loop. However, this will only send thename
andamount
of the last product in the list.Thanks for any help!