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 | |
|
/* Script Name: How do I hide options, grid rows, or columns in a live survey? (Power Surveys) To ensure your script works as expected, always copy the original script from the script library found in the support portal. Failure to use the most up to date script from the script library may cause unexpected results. */ Hide(Q_NAME, #); |
Hiding Grid Columns | |
|
/* Script Name: How do I hide options, grid rows, or columns in a live survey? (Power Surveys) To ensure your script works as expected, always copy the original script from the script library found in the support portal. Failure to use the most up to date script from the script library may cause unexpected results. */ HideColumns(Q_NAME, #); |
More Information
Read this WebHelp article to learn more about Questions.
Comments
0 comments
Article is closed for comments.