I have a text response question where participants input a string for their ID. I have several lists of 50 participants who should take a different branch of the survey than everyone else.
I am considering using a branch based on a regex match. For example if 3 of the 50 participants ID's were `XXX`, `YYY`, and `ZZZ`, I could do something like `if XXX|YYY|ZZZ then...` but I don't know how scalable this will be because Qualtrics tends to limit the text input you can have inside of boxes.
Alternatively, I think I could do this fairly easily by collapsing an array in JS, but I'm not sure if that's going to be the best way either.
Elegant way to show branch logic based on a matching text responses.
Best answer by Radam
I'll start with the authenticator to help with my flag logic.
If you have the user list and each has a unique UID, you can use the authentication to grant access to the survey based on the UID. Then you can create embedded data fields for the "flags" in the users contact fields.
For example UID A1A need to see block 3.
I'd add a authenticator to validate user and an embedded data file matching the name of the contact list field for visible blocks in the survey flow.
After authentication I add the the survey logic to see if visible_blocks = 3, if yes display the block.
Haven't tested by it should work...
Here is the documentation on authenticator which also discussed embedded data: https://www.qualtrics.com/support/survey-platform/survey-module/survey-flow/advanced-elements/authenticator/authenticator-overview/
Sign up
Already have an account? Login
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join.
No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login with Qualtrics
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join. No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login to the Community
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join.
No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login with Qualtrics
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join. No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
