How to change the next button, that it changes color when you submit an answer | XM Community
Skip to main content
Question

How to change the next button, that it changes color when you submit an answer

  • January 15, 2021
  • 3 replies
  • 41 views

Forum|alt.badge.img

Hi, I would like to have the color of my next button to be grey until the participant enters an answer or check a box.
I would like to have this feature on every page and every question type
Thank you!

3 replies

Forum|alt.badge.img+22
  • Level 7 ●●●●●●●
  • January 15, 2021

Add this to your header:


Forum|alt.badge.img
  • Author
  • January 21, 2021

Hi Ahmed,
thanks for your help. It is a cool feature, but not the one I was looking for.
I would like to have the button displayed as below:
It should be grey (color doesn't matter) as long as the particpant did not answer the question. When he checked a box or entered something it should change to the green version.
It should be some kind of indication for the participant that he met all the requirements to continue.
It would be cool to use the feature for any question type.
Continue Button.PNG
Thanks, Sven


Forum|alt.badge.img+22
  • Level 7 ●●●●●●●
  • January 21, 2021

Just checking whether a participant has answered or not, is quite different from checking whether they have met all the requirements. In the latter, you'll need to specify the requirements of the answer. However, for the former, you can just use the getSelectedChoices method to change the colour of the next button.