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 Response Text Logic
You can extract the text of chosen answers by appending the R modifier to a reference. For all supported question types, this returns one or more elements selected by the respondent. The one exception: for Open-ended questions, it returns the actual text entered by the respondent. To get the Nth selected answer text, append a number to the modifier.
💡 Tip: Responses are recorded in the order they were given, so randomization of items affects the order of responses. When multiple elements are returned, they're joined with commas and a ", and " before the last item. This follows the convention of the chosen survey locale.
Common Use Case Examples
[Q10r](single-choice) — pipes the text of the answer the respondent chose in Q10. Example: "You have selected [Q10r] as your favorite animal. Please share why."[Q10r1](multi-choice) — pipes the text of the first answer within the programmed set that the respondent chose. This reflects the programmed order, not the selection order. For example, if Blue (Q10A1) and Orange (Q10A5) were chosen,[Q10r1]returns "Blue" regardless of which was selected first.[Q10r](multi-choice) — pipes all chosen answer texts, joined with delimiters. Example: "You have selected [Q10R] as your favorite animals." → "You have selected cows, horses, and goats as your favorite animals."[Q10r1 if Q10rn>0]— pipes the first chosen answer text only if the respondent made at least one selection[Show if Q1r='six month ago']— shows the element only if the respondent's open-ended response to Q1 was "six month ago"