In aytm Logic, references and aliases can be used in multiple ways, achieving a wide range of text and survey flow manipulations.
How to Use Number of Responses Logic
Append RN to a reference to get the number of selected items. This is most useful for multi-choice question types, where you can create survey flow based on how many checkboxes the respondent ticked. For optional open-ended questions, RN returns 0 if the respondent proceeded without entering anything.
Common Use Case Examples
[Q10rn]— displays the number of selected answers in Q10 as a plain number[Q10SQ1rn]— displays the number of selected answers in the first subquestion of Q10[show if Q10rn>1]— shows the element only if more than one answer was selected in Q10[show if Q4 and Q4rn=1]— Q4 is an optional open-ended question. Shows the element if the respondent was exposed to Q4 and actually wrote something in it.