Skip to main content
All CollectionsAPI / Customization / AdvancedPeopleVine HTML API Render Engine (HAPI)
HAPI - Include responses from a form in an e-mail confirmation
HAPI - Include responses from a form in an e-mail confirmation
Updated over 7 years ago

This tutorial will help you include a confirmation email to people which includes the answers to questions they completed in a form. This can be used to ensure people selected the right value, confirmation email for accepting an agreement, etc.

  1. Login to the PeopleVine Control Panel

  2. Setup your Form

  3. Setup a new Email Notification

  4. Include the following markup (more importantly the data-pv tags) in your email body

<div align="left" data-pv-component="survey" data-pv-parameters="{customer_no: {@customer_no@}, survey_no: {@referenceType.survey@}, survey_response_no: {@referenceType.survey_response@}}" data-pv-type="response" style="text-align: left;"> <ul> <li data-pv-repeater="responses"><b data-pv-element="field_label" style="font-weight:bold;">Field Label</b>: <span data-pv-element="survey_answer">Response</span></li> </ul> <div></div> </div> 

5. Setup the notification to go out after a form is completed.

Did this answer your question?