Forums

user-defined confirmation mail

maifra 09 Apr, 2013
Hi,
I have made a form with some dropdown boxes.
The content of this dropdown boxes (holzart) is alwas displayed in the confirmation.
I would like to change this in that way, that the content is only displayed in the confirmation mail, if another textbox (stück) is not empty.
I have added a screenshot

Do you have any solution
GreyHead 09 Apr, 2013
Hi maifra,

I would do this by using a Custom Code action in the On Submit event of the form to read the results and build that part of the Email template using PHP. A simple loop is enough, for each row check if stuck has a value and if it does add an extra row or div into the output.

You can add the output to a $form->data['holst'] entry and then put {holst} in the email template.

Bob
This topic is locked and no more replies can be posted.