Checking if a 'ChoiceTextEntryValue' contains a sub-string (a phrase) | XM Community
Skip to main content

My survey has a text input box which is stored into variable ${q://QID16/ChoiceTextEntryValue}
The survey needs to check if the text contains a phrase (sub-string?): "incorrect year level".
Can it be achieved without JS?
If not, what will be the JS code?
Thanks!


We can use branch logic, with "is contains" condition


Will it reliably (or at all) work for a string ?


I mean a sub-string in the text


When putting a string ""incorrect year level" into "contains" condition, do I need to use double quotes or single quotes or no quotes at all?


all I could find https://www.qualtrics.com/support/survey-platform/survey-module/using-logic/#EmbeddedDataLogic


Leave a Reply