Forums

Populating Email Action with Form Data

fliegel 02 Aug, 2018
Hello,i am struggling with the configuration of the "email" action.

i like to have the "Send Settings" populated with the appropriate fileds from my form
(so the reciever of this form can acually "Reply" to the "Form user" instead of replying to the default webserver/cms email account)
The manual states that i can use the Syntax:

{data:form_field_name}
or
{data:request_parameter_name}

to fill in these parameters. Unfortunately it does not make clear which one actually IS the "from_field_name"
- should i use {data:field_text5} (the field ID written in White on black in the form designer? Should i use {data:email} - my actual field Name/ID?
(since both variations don't work i expect this is wrong anyway)

or should i use the {data:request...} Syntax - and with what type of Parameters?
GreyHead 02 Aug, 2018
Hi fliegel,

Please replace form_field_name with the name of the form field that has the value you want to use e.g. {data:email}

You can add a Debugger action temporarily to see what data is being submitted.

Bob
fliegel 02 Aug, 2018
Thank you for your fast Response and clarification - i guess i simply forgot to add the {data:email} and {data:lastname} Parameters in the "Reply to" fields as well.if i want to Combine 2 fields eg. firstname lastname and add them to the Reply Name box, shoudl i use {data:fistname} {data:lastname} or should they be separated with a certain delimiter?
Best regards


Robert Fliegel
GreyHead 03 Aug, 2018
Hi Robert,

I think that just {data:fistname} {data:lastname} will work OK, if not then you can use a PHP action before the Email action to concatenate the two values into a single one.

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