Automatically Send email with JS including variable references in the email body
I've searched a few threads but can't find what I'm looking for, hopefully someone will be able to advise?
I want SL to send an email when the user presses a 'Submit' button.
Subject box to be: Store Compliance Visit (and include the store number variable)
In the body of the email I want it to reference the answer to the questions ("Yes"/"No") the user has selected. The variables for this is 'Q1Answer', 'Q2Anser'...and so on.
Email body example:
Question 1: Yes
Question 2: No
Question 3: Yes
Question 4: Yes
Question 5: No
Then when the user clicks submit, the JS code runs, the email automatically sends to a pre-determined email address within the JS code.
Is this possible? I've attached a basic screenshot if that helps?