Guide - Creating a questionnaire

Extended ANS_ macros

During a survey creation on Startquestion platform, it is possible to change three things: automatically created content or information of the invitation sent to respondents or an e-mail message sent after filling in. This will help to personalize the message and adapt it in better way to the study or user. Startquestion also gives the possibility to set different message content, displayed depending on the responses given by respondents.

In order to enter such personalized information, use the Dynamic content function (macros). This article will focus on one of the macros – extended ANS_.

How to insert dynamic content using the ANS_ macro?



Another way is to enter the name of the macro directly into the content, eg [ANS_ID_12998] or [ANS_ID_1233.1]. This option is especially useful when in a given place (where you want to insert macros) there is no possibility of advanced editing of the content (eg the content of the question).

With the help of the ANS_ macro, it is possible to insert the content of the question dynamically, the content of the answer given on the previous page or the content of the reply message that the respondent gave in the completed questionnaire. Currently, the ANS_ macro is available for the following types of questions: single-choice, multiple-choice, form, drop-down list, open, form, question about e-mail, number and date.

ANS_ should be inserted using the drop-down list in: „Tags” in the advanced editor (shown in the graphic above).

How can you use the ANS_ macro?


Depending on the type of macro:

ANS_ * – allows you to set the selected answer to the content of questions, responses, alerts or reports.

ANSC _ * – as above, however, in the case of a multiple choice question, the answers are divided by a vertical sign „|” instead of a comma.

ANSH_ * – performs the same functions as the two above, however the answers of multiple choice questions in this case are divided by a newline (<br>).

ANSX_ * – allows you to insert responses to Webhook alerts and set redirection to the URL after completing the survey. If your survey has Polish interface, the macro substitutes the answer without Polish characters, spaces are replaced with underscores (_).

ANSU_ * – as above, but additionally the response is passed through the urlencode function – preparation for sending the response as a GET parameter in the URL.

Was this article helpful for you?

Thank you for answering