An interactive variable is a specially defined question in askiadesign that, when it is inserted into a questionnaire from the library, asks the person inserting it to provide specific details of the question's content (for example they may be asked to enter a long caption or answer list). You can use interactive variables to assemble a repertoire of stock questions in the library that can easily be customised for specific situations, such as multi-coded brand awareness questions where the brand list may vary, but you want the overall style to remain consistent across questionnaires. Once inserted into a questionnaire, an interactive variable behaves just like a normal variable and can be edited as required.
When an interactive variable is inserted from the library, a wizard appears. This wizard is an interactive process that guides the questionnaire designer by asking him or her to provide specific details of the variable. The special syntax present in the interactive variable determines the questions that the wizard asks the designer. For example, an interactive variable might have been set up to help create brand awareness questions. When the variable is inserted, the wizard asks the designer to enter a long caption and brand list.
Interactive questions can also present a selection of scenarios to the questionnaire designer. Doing so causes specific questions, responses or routings to be included or omitted from the questionnaire, according to the scenario chosen by the designer. To use this feature, you need to set up a variable which presents the questionnaire designer with a choice of scenarios, and at least one other variable or routing whose content is conditional on a specific scenario being selected. See keywords used when defining scenarios for a description of the syntax you need to use in order to define scenarios.
From version 5.4.6.0, you can prompt the questionnaire designer to specify a multimedia file when he or she inserts an interactive variable.
For further information on interactive variables, including an interactive example, see the Knowledge Base article Interactive Libraries in Design 5.4.
An interactive variable is defined in exactly the same way as a normal variable, except that you should place special syntax into the variable to define the interactive elements. This syntax can be placed into the question's long caption, short caption, ADC properties, response caption, shortcut caption or routing description in order to add the interactive elements, depending on the type. For example, to prompt the questionnaire designer to enter a response list, you might enter the following into a response caption: @@brandlist|please enter a list of brands@@. Any responses entered by the designer are then stored in brandlist, and any instances of brandlist in the questionnaire will be populated with the responses they entered.
To define an interactive variable:
question mode):Use the following keywords in your long caption to define your interactive variable:
| Syntax | May be Used In | Example | Description |
|---|---|---|---|
| ##Variable_Name|Wizard_description## | Long caption, short caption, ADC properties, response caption | ##productype|Please enter your product type...## |
Makes a caption interactive. The wizard will ask the survey designer to enter some text (in our example, he or she will br prompted to enter a product type). What he or she enters will be used to set the value of the variable (in our example, this will be the variable called productype). Instances of this variable (see the keyword description below, in our case this is ##productype##)will then be replaced throughout the questionnaire with what the designer entered. For example, if the designer entered "phone", then the word "phone" will replace all instances of the keyword ##productype##. |
| ##Variable_Name## | Long caption, short caption, ADC properties, response caption | How well do you know the ##productype## product? |
Any instances of this syntax (in our example, ##producttype##) will be replaced with the text entered by the questionnaire designer after he or she has been prompted to enter a value for this variable (see the above keyword description). In our example, the product type specified by the questionnaire designer is displayed here (if the designer entered the word "financial" then the word "financial" will be placed in all captions containing this syntax). |
| @@List_items|Wizard_description@@ | Response caption | @@brandlist|please enter a list of brands@@ |
Makes a response list interactive. The wizard will prompt the survey designer to enter a list of items, which can then be re-used throughout the questionnaire via the @@List_items@@ syntax; see the following syntax description for details. |
| @@List_items@@ | Response caption | @@brandlist@@ |
Re-uses the list of items with the specified name (in our example the list brandlist is used). The questionnaire desginer will be asked to define the list when he or she inserts a question containing the @@List_items|Wizard_description@@ syntax (see description above). |
The following keywords can be used to include scenarios in your interactive variables.
| Syntax | May be Used In | Example | Description |
|---|---|---|---|
| &&Scenario=scenario1;scenario2|Wizard_description&& | Shortcut caption, routing description | &&productype=beer;juice|Select a scenario&& |
Presents a selection of scenarios to the questionnaire designer. He or she chooses one of these, then the contents of the questionnaire are changed accordingly, where the appropriate scenario syntax appears. Questions, response items and routings will be included or omitted, depending on the scenario selected. In our example, the wizard will ask the survey designer to choose between the scenarios "beer" and "juice". See the syntax descriptions below for:
|
| &&Scenario=scenario1&&Shortcut | Shortcut caption | &&productype=beer&&Beer_awareness |
The question will be inserted into the questionnaire only if the appropriate scenario is selected by the questionnaire designer. In our example, the question "beer_awareness" will only be added to the questionnaire only if the questionnaire designer selected the scenario "beer" (see the above syntax description for details). |
| &&Scenario=scenario1&&Response Caption |
Response caption | &&productype=beer&&Corona |
The response will be added to the response list only if the questionnaire designer selected the appropriate scenario. In our example, "Corona" will only be added to the response list only if the designer selected the scenario "beer". |
| &&Scenario=scenario1&& | Routing description | &&productype=beer&& |
The routing will only be added to the questionnaire if the questionnaire designer selected the appropriate scenario. In our example, the routing will be added only if the designer selected the scenario "beer". |
You can set up a question that prompts the questionnaire designer to select a multimedia file when he or she inserts the question from the library. You need to add a multimedia resource to your QES. Then, you need to give a special name to the resource, and finally, reference the resource in one of the responses to your question.
To set up a prompt for a multimedia file:
screen mode to switch to screen mode.resources tab.insert picture... (for a still image), insert animation... (for a video), etc.edit.name, enter a an appropriate special name that will prompt the questionnaire designer to select a file. For example: ~~bmp;jpg;png|Please enter a brand logo~~question mode to switch to question mode..png?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9kemY4dnF2MjRlcWhnLmNsb3VkZnJvbnQubmV0L3VzZXJmaWxlcy8xMTAwLzIyNTAvY2tmaW5kZXIvaW1hZ2VzL2ltYWdlKDIxMSkucG5nIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNzY1NjE2NjE2fX19XX0_&Signature=CRnbC~lgs49OHZco5lDKt~nyCEvuVwCOL9dKEROwIf4gTEAy2rpPlgV9kXJIP95mQTKxjLMlPYoDllWQk1yLJJBu~IgBd9CIST4R2dNELC~VTvxRCH~CzBXO-vSE~csuBrj9qoQYnVejsIKemes2H~3AAACJ1lVqXctL6K4hbrwvNsSA3255XuZlvAuy2cXcNGj~kooHKCZ0kjRpSOdudEJ~OI5qtH86wae~belevPPnOOq6n760Khhib0AO7uTuw7BrD~3zSoza-3UzWNy50kxfdbv4OhJeF2DZuXvo7I40GmS4flwjcorr6o6id6OTdWJvlddEJIikxrukOO~b6w__&Key-Pair-Id=K2TK3EG287XSFC)
When adding a multimedia resource that will prompt the questionnaire designer, it is important that you name your multimedia resource correctly. The name consists of the file type (or types), then the message you want the questionnaire designer to see. The following rules apply:
For example, the following name will display the message "Please enter a brand logo" and allow the designer to select a BMP, JPG or PNG file:
~~bmp;jpg;png|Please enter a brand logo~~
In this example, the message "Please upload a bitmap for the brand" will be displayed, and the designer will be able to select an AVI, BMP or JPG file.
~~avi;bmp;jpg|Please upload a bitmap for the brand~~
In this example, the message "Please upload the advert you want to test" will be displayed, and the designer will be able to select a supported video file.
~~video|Please upload the advert you want to test~~
Once you have defined one or more interactive variables you easily add them from your questionnaire to the local or global library.
To add one or more interactive variables to the library:
question mode):add to the local/global library... (alternatively, select add to library from the edit menu). The categories window opens:.png?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9kemY4dnF2MjRlcWhnLmNsb3VkZnJvbnQubmV0L3VzZXJmaWxlcy8xMTAwLzIyNTAvY2tmaW5kZXIvaW1hZ2VzL2ltYWdlKDcpLnBuZyIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTc2NTYxNjYxNn19fV19&Signature=MFHgEQwko2iE~VUUcio0eOoZUah0qNtsbTIKdnD-qRHDN-NL~HnQ5g2LXjjn3rlzuGTOZFoixM4zmKnDLGuuHpJMAqqj39vwVQ97RRIaYWMkUdcGvxb7PRRCo9hzbdOO2yZBX16hJsKqb1hpDyem-HO9jrEsphYVsLv8z0Ezua92nIEM8RO2ZGQTw9IcfCdttTTJqeYiPAmPFZUJIvvjY7-rU5Zr35weexhAo~8x2mkC9iCxwhII8e88msMoX~YArYwv0tCZ~IYeuIOpC99gYOmKot5LqcEOpIkUqi4AfFjTzplerBMqkOv0oh2xAePrAdoYms1mpmwtl9zPIqgrdQ__&Key-Pair-Id=K2TK3EG287XSFC)
category.OK. The interactive variable is added to the library and a new category is created in the library, if you entered a new name in category.