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

How to prevent user input in Matrix table?

  • 14 October 2019
  • 3 replies
  • 68 views

Userlevel 1
Badge +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
icon

Best answer by vowigoe 15 October 2019, 16:18

View original

3 replies

Userlevel 7
Badge +11
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.
Userlevel 1
Badge +1
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.
Userlevel 1
Badge +1
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);

Leave a Reply