How do I hide the "next" button until any response is selected? | XM Community
Skip to main content
Solved

How do I hide the "next" button until any response is selected?


Forum|alt.badge.img+7

Hi,
I am trying to include some code into my survey whereby I need to hide the "Next" button until a participant selects a 'Yes' or 'No' response. Either answer would allow the next button to be displayed but I am currently unsure of how to add both responses in.

Any help would be greatly appreciated.

All the best,

Ryan

Best answer by rondev

Use the below code:
this.disableNextButton();

this.questionclick = function(event,element)
{
if (element.type == 'radio')
{
this.enableNextButton();
}
}

View original

2 replies

rondev
Level 6 ●●●●●●
Forum|alt.badge.img+22
  • Level 6 ●●●●●●
  • 1449 replies
  • Answer
  • April 17, 2020

Use the below code:
this.disableNextButton();

this.questionclick = function(event,element)
{
if (element.type == 'radio')
{
this.enableNextButton();
}
}


Forum|alt.badge.img+7

Thanks Rondev! This bit of code didn't seem to work 100% but I substituted "disable" and "enable" with "hide" and "show" and that worked!


Leave a Reply