Sitecore 9 forms - capture input from form then put that information to exm email template

738 Views Asked by At

How do you get the user input (e.g. First Name, Last Name etc...) from sitecore 9 forms then put that to exm email template before sending the email?

What i want to achieve is for example: I have a form that have first name, last name and position and comments field and i want that user input data (first and last name, position and comment) to be pass on the email template that on the EXM and send it as an email upon clicking the submit button in the form. Is that possible?

1

There are 1 best solutions below

2
On BEST ANSWER

You need to update the contact details, you can do that with a custom save action.

It is documented on the Sitecore doc website see: Walkthrough: Creating a custom submit action that updates contact details

This are the steps:

  • Create a submit action class
  • Create the SPEAK editor control
  • Add a folder that contains parameters for the editor
  • Create the client script for the editor
  • Create a submit action item

The following blog explains Sitecore Forms Send Email Campaign message alternative you can also create an custom sent e-mail or if you need other examples of custom Forms extensions see Sitecore-Forms-Extension-Pack