How do I force a response to a text entry question if certain responses in a matrix table are selected within the page? For example, I have a matrix with five scale points and eight statements. If the respondent selects a 1 or a 2, for any of the eight statements, I want their response to the next text entry question to be required/forced. The responses of 3, 4 or 5 for the eight statement enable the respondent to progress without forcing a response to the text entry question.
Page 1 / 1
you can make this question force response and apply display logic for 1 or 2.
I want the text entry question to be visible and on the same page as the matrix table. Is that possible with display logic?
no in page display logic dont work for matrix question. force response get disabled.
Hello @Christaann ,
The requirement can be achieved using Custom code JS with following flow:
Create a Duplicate Next button on text entry question and hide real Next Button. On the click event of Duplicate Next button check whether If the respondent selects a 1 or a 2, for any of the eight statements, and(&&) the text is entered in the text box then pragmatically click real next button else show a error message
The requirement can be achieved using Custom code JS with following flow:
Create a Duplicate Next button on text entry question and hide real Next Button. On the click event of Duplicate Next button check whether If the respondent selects a 1 or a 2, for any of the eight statements, and(&&) the text is entered in the text box then pragmatically click real next button else show a error message
There's no need to write JS. You can use the custom validation feature built into qualtrics. Let's assume that the matrix is Q1 and the open end is Q2. Then your validation is:
IF Q2 is not empty
AND Q1 1 (Count) is greater than or equal to 1
new logic set
OR
Q2 is not empty
AND Q1 2 (count) is greater than or equal to 1
new logic set
OR
Q2 is empty
And Q1 1 (count) is equal to zero
And Q1 2 (count) is equal to zero
new logic set
OR
Q2 is not empty
And Q1 1 (count) is equal to zero
And Q1 2 (count) is equal to zero
I added a screen cap of the test I ran on this. In that example Q44=Q2 and Q40=Q1!
IF Q2 is not empty
AND Q1 1 (Count) is greater than or equal to 1
new logic set
OR
Q2 is not empty
AND Q1 2 (count) is greater than or equal to 1
new logic set
OR
Q2 is empty
And Q1 1 (count) is equal to zero
And Q1 2 (count) is equal to zero
new logic set
OR
Q2 is not empty
And Q1 1 (count) is equal to zero
And Q1 2 (count) is equal to zero
I added a screen cap of the test I ran on this. In that example Q44=Q2 and Q40=Q1!
Thank you
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.