Scripting Questionnaire | XM Community
Skip to main content
Question

Scripting Questionnaire

  • December 28, 2023
  • 6 replies
  • 68 views

Forum|alt.badge.img+1

We're evaluating respondents' views on seven statements rated on a 5-point scale. The condition we aim to implement involves selecting individuals who answer 4 or 5 for at least 5 out of the 7 statements (statements 1-7). How can we efficiently structure this condition in our survey design or within Qualtrics to accurately identify these qualifying respondents?

6 replies

Forum|alt.badge.img+21
  • QPN Level 5 ●●●●●
  • 306 replies
  • December 28, 2023

Hi @Maamoun96 
Create a matrix question as per your requirement.

Add custom validation as per given above.


Forum|alt.badge.img+1
  • Author
  • 2 replies
  • December 29, 2023

Thank you for your reply…

I don’t need a data validation, what I need is more like a skip logic that terminates the survey in case the condition is not met.


Shashi
Level 8 ●●●●●●●●
Forum|alt.badge.img+34
  • Level 8 ●●●●●●●●
  • 654 replies
  • December 29, 2023

Thank you for your reply…

I don’t need a data validation, what I need is more like a skip logic that terminates the survey in case the condition is not met.

We can use scoring for this. So score the scale point 4 and 5 with score 1. Post the matrix question in the branch logic check if score is less than 5 then terminate.


Forum|alt.badge.img+1
  • Author
  • 2 replies
  • December 29, 2023

Can you please tell me the steps to do that, because I tried this method and it didn’t work, I think there was something wrong with the steps I did


Shashi
Level 8 ●●●●●●●●
Forum|alt.badge.img+34
  • Level 8 ●●●●●●●●
  • 654 replies
  • December 29, 2023

Step 1: Create a scoring category - mscore. Put score of 1 to scale point 4 and 5 for all 7 statements.

Step 2: In the survey flow after the block with matrix question, pipe in the score of ‘mscore’ in an embededd data - ‘ed_mscore’.

Step 3: Add branch logic as if ‘ed_mscore’ is less than 5. Inside branch logic add end of survey element.


Forum|alt.badge.img+21
  • QPN Level 5 ●●●●●
  • 306 replies
  • December 29, 2023

@Maamoun96 Rather than custom validation, you can use the same logic set in your survey flow and create a branch logic. For e.g., Create a embedded data ‘Qualified’ and If the mentioned condition is not met, set ‘Qualified = No’. Create another branch logic saying ‘If Qualified = No’, then Terminate/End of survey.