How to prevent user input in Matrix table? | XM Community
Skip to main content
Solved

How to prevent user input in Matrix table?

  • October 14, 2019
  • 3 replies
  • 102 views

Forum|alt.badge.img+1
Hi all, I have a matrix table with 15 rows and three columns of text input fields. In each field, I defined default choices using piped text. How can I prevent users from changing these default choices and simply use the matrix table as an overview table? I tried: jQuery("#"+this.questionId+" .InputText").prop("readonly", true); That did not do the trick. Best

Best answer by vowigoe

Ok I used the following code to hard-code each row and column in the table: jQuery("[id='QR~QID~1~1~TEXT']").attr("readonly",true);

3 replies

JenCX
Level 5 ●●●●●
Forum|alt.badge.img+11
  • Level 5 ●●●●●
  • October 14, 2019
What I would suggest in this situation is to use a descriptive text question and build your table using Rich Content Editor, then use your piped text inside it.

Forum|alt.badge.img+1
  • Author
  • October 15, 2019
Hi, the problem is that we want to randomize the rows of the table, which I am not sure how to achieve with a table from Rich Content Editor.

Forum|alt.badge.img+1
  • Author
  • Answer
  • October 15, 2019
Ok I used the following code to hard-code each row and column in the table: jQuery("[id='QR~QID~1~1~TEXT']").attr("readonly",true);