Checking if a 'ChoiceTextEntryValue' contains a sub-string (a phrase) | XM Community
Question

Checking if a 'ChoiceTextEntryValue' contains a sub-string (a phrase)

  • 24 July 2020
  • 5 replies
  • 38 views

Userlevel 3
Badge

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!



5 replies

Userlevel 7
Badge +22

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

Userlevel 3
Badge

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

Userlevel 3
Badge

I mean a sub-string in the text

Userlevel 3
Badge

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?

Userlevel 3
Badge

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

Leave a Reply