Hi!
Here are my items:
Q1: Please select all options that apply.
A
B
C
D
Other (please specify) [open text line]
Only those selected among A,B,C,D are carried to Q2. I can get the "Other" option to be hidden for this Q2, using jQuery("#"+this.questionId+" li.Selection").eq(4).hide();
Q2: Please select your TOP choice .
A
B
C
D
Those that were NOT selected in Q2 are to be carried to Q3. However, this means that the "Other" option gets carried-over, as well (because it was only hidden).
Q3: Please select your BOTTOM choice. (Suppose that A gets selected)
B
C
D
Other (please specify)
Thus, I don't want to hide an element based on a selected element number, as that element number appears to change as a result of the choice selected.
Is there a way to select an element based on the 'label' of the option?
pseudo-logic., jQuery("#"+this.questionId+" li.Selection").[ select element with label, "Other (please specify)"].hide();
Otherwise, how can I carry forward an original list, while hiding the Other option?
Thanks in advance!
Hide an open-text option when other options are carried-forward across 2 items
Best answer by SurajK
Hi yk_mr ,
You can simply remove the last element on Q2 and Q3 using one line of code,
jQuery('#'+this.questionId+' ul li').last().remove();
Because any how the other option will be in last position.
Sign up
Already have an account? Login
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join.
No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login with Qualtrics
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join. No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login to the Community
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join.
No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login with Qualtrics
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join. No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
