Solved
how can i disable Submit Button if answer is "No"
Looking for guidance to disable Submit Button if answer is "No" in single select select question with Yes/No choices.
Example:
Are you sure you want to submit the survey?
1. Yes
2. 2. No
If answer is yes then submit button is enables and if answer is No then submit button is disabled
Best answer by jainshubham
Hi @Rahul,
If you want to accomplish this feat using JS, below is the code you can use. You would need to replace the button ID (NextButton) & option ID's (QID1-1-label, QID1-2-label) with your survey's relevant id's that you can find by inspecting the elements.
Qualtrics.SurveyEngine.addOnReady(function()
{
document.getElementById('QID1-1-label').onclick = function(){
document.getElementById("NextButton").disabled = false;
}
document.getElementById('QID1-2-label').onclick = function(){
document.getElementById("NextButton").disabled = true;
}
});
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
