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

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

Use the below code:
this.disableNextButton();

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


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