Difference between revisions of "Help:Subject (Invitation Email)"
HELP PAGE DISCUSSION CLOSE
(New page: <b class="important">REQUIRED FIELD</b> The '''Subject''' field will be used in the header field for your email to define the subject of the email message sent. This field is pulled from...)
 
m (1 revision)
 
(No difference)

Latest revision as of 23:21, 24 March 2013

REQUIRED FIELD

The Subject field will be used in the header field for your email to define the subject of the email message sent. This field is pulled from your language file by default, and the default English string is:

Survey Invitation: [% survey.title.replace("[\n\r]", " ") | truncate(50) %]

That will use the survey title in the subject, ensuring that it is truncated if too long and any new lines are removed.


Multiple Languages

If you have enabled multiple languages for this survey, you will see an input field for each language you have available. Because this is a required field, you will have to fill out at least one of the language fields. Any language which you do not provide a value for will use the highest priority language that has been completed. The languages are listed in order of priority. This allows you to enter the text only once if you desire to have all languages use the same value.


Template-Toolkit Capable

You can utilize Template-Toolkit tags in this field. You can embed template variables into the field content. See an example of how one would use template tags within answer choice text:

Work out during the
[% IF survey.time <= '12:00:00' %]
  morning
[% ELSIF survey.time <= '05:00:00' %]
  afternoon
[% ELSE %]
  evening
[% END %]

The example above displays a different answer choice depending on what time of the day the survey taker views the question. Click Here for a quick tutorial on Template-Toolkit.