Hi,
I was wondering whether it is possible to hide a column in a side by side question based on an embedded data value.
I would like to hide the second column if the embedded data field "additional question" meets the set the value of '1'.
Thanks
Mark
Apply if condition on embedded data and use below code in to hide second column:
jQuery("#"+this.questionId+" .SBS2").css("visibility","collapse")
Thanks Rondev. I'm quite new JS, are you able to provide a bit more of what the code would look like? Eg do i need to add var for the embedded data field?
https://www.qualtrics.com/community/discussion/comment/30027#Comment_30027Similar to below (Replace ED1 with your embedded data name):
if("${e://Field/ED1}"=="1"){
jQuery("#"+this.questionId+" .SBS2").css("visibility","collapse")
}
Thank you Rondev
What would the class name be for a text entry question? I'm trying to do the same for a text entry question and hide the first row but i assume SBS2 can only be used side-by-side?
would it be
if("${e://Field/ED1}"=="1"){
jQuery("#"+this.questionId+" .TE1").css("visibility","collapse")
https://www.qualtrics.com/community/discussion/comment/30033#Comment_30033Are you using text entry question of type form?
Yes, text entry of type form - with two fields.
https://www.qualtrics.com/community/discussion/comment/30037#Comment_30037For this we do not need JS, you can directly add display logic using answer choice display logic
Thanks rondev
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.