How do I use JS to make the piped text in default choices un-editable/disabled? | XM Community
Skip to main content

How do I use JS to make the piped text in default choices un-editable/disabled?

  • August 12, 2022
  • 2 replies
  • 88 views

Forum|alt.badge.img+1

Hi! I'm working on a matrix table survey question that is constant sum. I have three columns, but I want to make the third column un-editable so that it only displays the piped text of their answers they entered in a previous question. I've never used JS before so I wanted to see if anyone had a way to use it in a case like this!

Thanks for the help!

2 replies

rondev
Level 6 ●●●●●●
Forum|alt.badge.img+22
  • Level 6 ●●●●●●
  • August 13, 2022

Try using below JS in the matrix question:
jQuery("td.last input[type='text']").attr("disabled",true);


Forum|alt.badge.img+1
  • Author
  • August 13, 2022

That worked perfectly - thank you! How can I adjust that code so it makes the first two columns for a different question un-editable?