grayout a choice in a multiple choice question | XM Community
Skip to main content
Question

grayout a choice in a multiple choice question

  • June 6, 2023
  • 3 replies
  • 161 views

Forum|alt.badge.img+2

Greetings, 

 

I am building a registration form for session. I would like to be able to grayout if time conflic would happen..

 

For example: 

Session 1 from 0900 - 1000 

Session 2 from 0900 - 1000 

Session 3 from 0930 - 1000 

 

If the registrant has selected Session 1. Session 2 and Session 3 will be grayed out. 

 

Any thought? 

3 replies

Forum|alt.badge.img+11
  • QPN Level 5 ●●●●●
  • June 29, 2023

Greetings, 

 

I am building a registration form for session. I would like to be able to grayout if time conflic would happen..

 

For example: 

Session 1 from 0900 - 1000 

Session 2 from 0900 - 1000 

Session 3 from 0930 - 1000 

 

If the registrant has selected Session 1. Session 2 and Session 3 will be grayed out. 

 

Any thought? 

would you want to lock the selection or Would they be able to switch their selection eg. if someone selects session 1 session2 3 grey out and they cant switch to a different option. if not then you can just use the single answer multiple choice question with radio buttons


TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • June 29, 2023

@agabdulaziz - You can use JavaScript to disable the checkbox button associated with Session 3 when Session 1 is selected. It seems like this would become very complicated, very quickly. Every time something is selected or deselected you’ll have to check for conflicts or lack of conflicts across all choices.


Forum|alt.badge.img+15
  • QPN Level 4 ●●●●
  • June 29, 2023

Hi @agabdulaziz, I am assuming that by grayed out you meant to say only to change the color of options which are not selected and not disabling them for selection. 

Please review this link for details.

 

 

Thanks,

JB