I'm working on a survey where I need to conditionally add text to an existing question based on an embedded data value.
Specific requirement:
- Embedded data variable:
Example_Survey = ABC - Add "Sample Text" to a question
- Only add this text if the class equals "ABC"
- If the value is anything other than "ABC", do NOT add the text
Since we're running multiple survey variations within the same survey and it is only two words in one questions, I'd prefer to implement this using CSS classes and JavaScript rather than Qualtrics' built-in logic, as this would be cleaner and more maintainable.
How does a Class recognize the embedded data value?
Do I have to create a nested Embedded data field?
Thank you!


