Previous Topic

Book Contents

Book Index

Next Topic

Creation of Survey Email Templates

The creation of survey email templates requires the rich text editor and thus can be done only in Valuemation web client.

  1. Open the email templates catalog and call the 'Create' context menu action. The 'New: Email Template' editor opens.
  2. Specify basic template attributes. Make sure to select 'Email Category' = 'Survey' and 'Email Type' = 'Text/HTML'.

    Email category classifies the templates according to their intended use. See 'Enabling a Template for Selection' for its role in the process.

  3. Go to the 'Email Bodies' reference catalog of the newly created email template and call the 'Create' context menu action. The 'New: Email Body' editor opens.
  4. Use rich text field in the 'New: Email Body' editor to create the actual survey content.

    Note: To create a survey, the rich text field must have HTML controls enabled.

Creating the survey content

  1. Insert a HTML form (button Help Image in the HTML controls toolbar) and specify its properties. Most importantly:
    • Set the 'Action' property by specifying the url to open when the 'Submit' button in the form is clicked. The url can be specified parametrically using the emf functions (where prefix/suffix '<% / %>' signifies a Python expression). For example, <%VM.getMainParameter("VMWeb", "VMWebRoot")%> will return the Valuemation url for the specific installation as specified in mainparameters.
    • Set'Target' = 'New Window'. This specifies that the referenced url will open in a new window.
    • Set 'Method' = 'GET'. This will instruct the mail client to read the values entered by the user in the form and append them as parameters to the url.
  2. Using the HTML controls, insert the actual content of the form. To access control properties, right-click the element and select the 'xy Properties' item at the bottom of the context menu.
  3. Insert special hidden fields (button Help Image in the HTML controls toolbar) which will be used to specify additional parameters added to the url. Two hidden fields are needed:
    • hidden field one: Name = 'task', Value = 'runlink'
    • hidden field two: Name = 'blink', Value = '<%emw.IPC.runlink.submitSurvey()%>' (example only),

      where the value of the 'blink' hidden field represents a workflow which will generate the runlink to be opened by the url. The example value '<%emw.IPC.runlink.submitSurvey()%>' is a workflow provided in Valuemation standard.

      Help Image

  4. Insert the 'Submit' button at the bottom of the form by inserting a button and making sure that attribute 'Type' in Button properties is set to 'Submit'. This ensures that clicking the button will perform the action specified for the inserted form.

See Also

Customer Survey Emails

Brief Functionality Overview

Enabling a Template for Selection

Survey Form Content

Survey Data Structure

Survey Email Preview

Example Use Case

Enabling HTML controls in the rich text field