How do I make the first row of a matrix table (text entry) read only | XM Community
Solved

How do I make the first row of a matrix table (text entry) read only

  • 29 July 2020
  • 2 replies
  • 53 views

Userlevel 4
Badge +14
  • Level 5 ●●●●●
  • 133 replies

I'm using the text entry Matrix Table.
I've used 'Add default choices' to pipe in answers from a previous question into the first row of the table, but I would like to make those answers read only.

icon

Best answer by SurajK 30 July 2020, 16:50

View original

2 replies

Userlevel 5
Badge +4

You can use the below jQuery code to make it read only,
jQuery('#'+this.questionId+' tbody tr:first').find('input[type="text"]').attr('readonly','readonly')

Userlevel 4
Badge +14

Thanks - perfect

Leave a Reply