Mask and Rev-Mask (Reverse-Mask) are aytm Logic commands that cut down the options a question shows, based on what the respondent chose in an earlier question. They save you from writing a separate [show if...] on every option.
The most common setup is a Checkbox question followed by a question with the same list of options, in the same order. The masked question can be a different type: a radio button question, a Reorder (ranking) question, or the rows of a grid such as Sliders or a Progressive Matrix.
In This Article
- How Masking Matches Options
- Mask Logic
- Rev-Mask Logic
- Using Except
- Supported Question Types
- Combining Masks with Other Logic
- What Respondents See in Edge Cases
How Masking Matches Options
Masking pairs options by their position in the editor, not by their text. Option 1 in the source question controls option 1 in the masked question, option 2 controls option 2, and so on. If Q3A1 reads "Expedia" and Q4A1 reads "Travelocity", masking still pairs them.
- Keep the options in the same order in both questions.
- Randomizing either list is fine. Pairing uses the editor order, not the order a respondent sees.
- If the masked question has more options than the source question, the extra options aren't masked and always show.
- If the source question has more options, the extras are ignored.
Mask Logic
Use Mask to show only the options the respondent selected in an earlier question. Place the logic in the follow-up question, the one being masked.
Syntax: [mask by...]
Example: [mask by Q3]
Rev-Mask Logic
Use Rev-Mask to show only the options the respondent did not select in an earlier question. Place the logic in the follow-up question.
Syntax: [rev-mask by...]
Example: [rev-mask by Q3]
Using Except
To keep an option visible in the follow-up question no matter what was selected in the source question (for example, "None of the above" or "Other"), add except to the logic.
Place the logic in the follow-up question. The reference after except must point to an option in the question that holds the logic, not to the source question.
Examples:[mask by Q3 except Q4A15][rev-mask by Q3 except Q4A15]
You can list several options or use a range after except:
-
[mask by Q3 except Q4A14,15]—keeps options 14 and 15 visible -
[mask by Q3 except Q4A13-15]—keeps options 13 through 15 visible
In a grid question (Sliders, Star rating, Progressive Matrix and similar), masking works on rows, so the except reference points to a row: [mask by Q3 except Q4SQ15].
⚠️ Note: In the examples above,
Q3A15would not work as the except reference. It must point to the question that holds the logic (Q4), not the source question (Q3). The editor flags this with "In except section of mask by, question can only reference itself". If you point to the wrong level, such asQ4A15in a grid, the editor shows "In except section of mask by, only first level of question can be referenced".
Supported Question Types
Questions you can mask
The table shows what [mask by...] and [rev-mask by...] filter in each question type, and how to write the except reference.
| Masked question type | What gets masked | Except reference |
|---|---|---|
| Radio buttons, Checkboxes, screening radio and checkbox questions | Answer options | Q4A15 |
| Reorder (ranking), Side-by-Side | Items | Q4A15 |
| Forms | Fields | Q4A3 |
| Sliders, Star rating, Smiley rating, Progressive Matrix, Polarity Scale, Distribute | Rows (sub-questions). Answer columns are never masked. | Q4SQ15 |
| Topography, Quadrant | Entities (the items respondents place) | Q4E15 |
| Shelf Test | Products | Q4A15 |
Question types with no list to filter can't be masked: Open ended, Instruction text, Image, Video, Video Response, Heatmap, Cascade, Combobox, Conversation AI, AI Chat Simulator, Van Westendorp, Ecommerce and Menu Test. The editor shows "Mask rule is not allowed for this type of question".
What the source question contributes
Mask works best when the source question is a Checkbox, a Radio buttons question, or a screening radio or checkbox question. An option counts as selected only if the respondent chose it.
You can use other question types as the source, but then masking follows what the respondent was shown, not what they answered:
- Grids (Sliders, Star rating, Smiley rating, Progressive Matrix, Polarity Scale, Distribute, Topography, Quadrant): every row the respondent saw counts as selected, whatever they answered in it.
- Reorder, Side-by-Side and MaxDiff: every item the respondent saw counts as selected.
This is useful when the source question was itself masked. For example, [mask by Q5] on a question after a masked ranking question carries the same shortened list forward.
⚠️ Note:
[mask by...]can't filter by an answer picked inside a grid. To show an option only when a respondent picked a specific answer in a Progressive Matrix row, put[show if...]on each option instead, for example[show if Q3SQ1A2]on the first option.
Combining Masks with Other Logic
-
Several masks in one question must all allow an option.
[mask by Q2][rev-mask by Q3]shows only the options selected in Q2 and not selected in Q3. -
Masks plus option-level logic: if an option also carries its own
[show if...]or[hide if...], both the mask and that logic must allow the option. -
Masks plus show first/last: the mask runs first.
[mask by Q3][show first 3 Q4A]shows at most three of the options the respondent selected in Q3. -
Aliases: you can mask by a question alias, for example
[mask by @brands]. -
One source question per mask:
[mask by Q2-3]isn't valid. To show options selected in either of two questions, put[show if Q2A1 or Q3A1]on each option. -
No conditions: masks don't take
if. To mask only for some respondents, write[show if...]on each option instead.
What Respondents See in Edge Cases
-
The source question was skipped or hidden. The respondent made no selections, so
[mask by...]hides every paired option and[rev-mask by...]shows all of them. Make sure the source question comes before the masked question. - No options are left. The question is not skipped automatically. The respondent sees it with the message "No answer options, please click next to continue."
- One option is left in a radio button question. If the question is the only one on the screen, the remaining option is recorded as the answer and the respondent moves on without seeing the question. This doesn't happen when that option asks for a typed comment.
💡 Tip: To skip a masked question when nothing would be left, add a show condition to the question itself. For a question with five options and
[mask by Q3], add[show if Q3A1 or Q3A2 or Q3A3 or Q3A4 or Q3A5]. For[rev-mask by Q3], add[hide if Q3A1 and Q3A2 and Q3A3 and Q3A4 and Q3A5].