Hi. I have a multi insert form and when the user select for example 3 insertions and submit the form he receive an automatic email with the results only for the first insertion … how to do this for the rest?
We can only answer this if you show us your server action steps
In this configuration the mail should be sent as many times as the repeat count is.
Also - the security steps should not be in the repeat but as first steps in your server action, you don’t want to repeat them.
I understand that, but how can i do that? How to sent it as many times as the repeat count is?
Well this on your screenshot should already run the send mail step as many times as the repeat is repeating, just the same as your insert step runs as many times as well.
Soory. Don’t know if i understand this. The options are form 1 to 6 form insertions (the user choose). The data is ok whatever the number of insertions i choose. Data is well inserted on database.The issue is with the email
The send mail step runs the same way as the insert step as they are in the same repeat.
So it will run as many times as the insert step runs and as many times as the inserted records number is …
Isnn’t that the case? How many emails do you receive?
I receive one email but only with data from the first insertion … when i should receive the data from the 3 insertions. Whatever the number of insertions i select i only receive data from the first insertion
So you expect 3 emails, but you only receive 1?
i correct … i receive 3 emails but the data are from the first insertion
But then check the expressions you use …
Expression like this points to the first item of the repeat …
Use the same expressions you are using in the insert step. Not ones that point to [0].something
i.e. first item.
hummm… ok … and i can i change that?
Of course you can change that:
OK… very well … now i understand … thank you very much
Instead of selecting the binds from the POST variables, you should select the binds from inside the repeat I would also advise checking your insert step as these should also be using the repeats binds.
OK. Thanks