If syntax in JavaScript | XM Community
Skip to main content

var col1READONLY = "${e://Field/D2age1eqA2b}";
if (col1READONLY = "1")
{
jQuery("#"+this.questionId+" .c4 input").prop("readonly",true);
}
I'm trying to make a column read only if an embedded variable = "1" (text), however the above appears to be making the column read only all of the time (regardless what the col1READONLY text is.
Am I doing something daft?

Their will two equal to symbol in if condition as shown below:
if (col1READONLY == "1")


https://www.qualtrics.com/community/discussion/comment/29802#Comment_29802Thank you so much


Leave a Reply