Can I add a new row to Matrix table only if the previous statement with text entry is filled? | XM Community
Skip to main content
Question

Can I add a new row to Matrix table only if the previous statement with text entry is filled?

  • March 22, 2022
  • 4 replies
  • 134 views

Forum|alt.badge.img

Hi
In my survey, I have a question that is completed using a Matrix table with a set number of statements, Likert type, & allowing multiple answers.
The last option in the statement is "Other (please specify)" with "Allow Text Entry" specified.
Is there any way to automate this so that if the respondent does enter something in this last "Other" statement, another row appears that says also says "Other (please specify)" with text entry allowed. Ie, so that if a respondent does enter something, they can enter something else in the new row, but so that not all respondents have to see multiple "Other" rows if they aren't going to enter anything.
I hope that is clear & appreciate any help!

EDIT: I tried to solve this using "Display logic" for the specific statement, but I can't seem to do in page display logic

4 replies

Aanurag_QC
QPN Level 5 ●●●●●
Forum|alt.badge.img+31

Unfortunately, that is not possible, but this can be a great product feature to have. You can probably share these details as a product feature for future enhancements.


TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • March 22, 2022

You could create a Matrix with multiple Other rows and use JS to hide all but the first one. Then reveal an additional row when the previous row is answered.


Aanurag_QC
QPN Level 5 ●●●●●
Forum|alt.badge.img+31

That will be one complicated Jquery :-D


Forum|alt.badge.img

Thank you, both. My JS isn't good enough to write that code unfortunately - I'm not really sure where to start.