This script is intended to hide specific answers in a Choice question, or rows or columns in a Grid question.
This script can be applied to questions within both pending and live surveys, but is especially useful for hiding irrelevant options in live surveys that cannot be deleted because the options contain live data.
This script will work on the following question types:
- Single Choice Questions (standard and visual)
- Multi Choice Questions (standard and visual)
- Single Choice and Multi Choice Grids (standard and visual)
- Scale Slider Grid
- Single Choice Card Sorts
- Single Choice and Multi Choice Magnetic Boards
- Allocation Grids and Allocation Sliders
- Rank Order Grids and Rank Order Sorts
Example
- Hiding stores that have closed, so they no longer need to be shown to participants.
- Hiding consumer products that clients no longer sell.
- Hiding service options that are no longer offered.
Detailed Steps
- Find and copy the appropriate script below.
- Select the question in the Questionnaire Tree.
- In the Scripting section of the question, click Edit Scripts.
- Paste the script into On Load tab.
- Change Q_NAME to the name of your text question.
- Change # to row/column numbers (separated by a comma if multiple) e.g. 1,2,3
- Click Save.
- Validate and test your survey.
| Question Type | Script |
|---|---|
| Hiding Choice Question Options or Grid Rows | |
|
|
| Hiding Grid Columns | |
|
|
More Information
Read this article to learn more about Questions.