Goto main content

Directmail

Insert form data into an email

 

Directmail also allows you to manage the connection between the forms created with the xform widgets, or those linked to the specific forms widgets. You can automatically send an email to a user who has, for example, filled out a form on your site using Directmail. In addition to email and template creation (seen in the previous sections), you can also insert in your email information from the tables linked to the forms.

So to add the fields you have to use the following code (between quotes) "{{use cgidata; cgidata.field_name;}}" the essential part is the "field_name" which is actually the name of the field in the table (framed items on the screenshot below).

For example, to insert the email use the code: {{use cgidata; cgidata.email;}}, for the address : {{use cgidata; cgidata.address_1;}}. On the other hand, there is an exception concerning the drop-down list, the code to use in these cases is: {{use cgidata; cgidata.field_name.label;}}
On the civility for example, use: {{use cgidata; cgidata.civility.label;}}

© 2024 extenso Inc. All rights reserved.