In this article
Used to dynamically exclude and include questions in Surveys. This functionality can also be used in Page objects (go to Page Object for more information). If you want to dynamically exclude a question, use this field to create a Jscript-expression that evaluates to a Boolean value (true or false), as when you create a condition. If this value is evaluated to ‘true’ the question is displayed, and if this value is evaluated to ‘false’ the question is not displayed. If you leave the field empty, the question is always displayed.
If we set up a Single question q7- Favorite, and want to include this question only when a respondent has also picked EuroSport (code ‘2’) in the multi question q4 –TV Channels Today, write the following code in the Question mask field of q7- Favorite - .
f('q4').inc('2')
Figure 1 - Example of Question masking
The Masking tabs for Single, Multi, Ranking, Grid, Numeric List and Open Text List questions include the Predefined Scripts functionality (go to Predefined Scripts for more information).