I'm building a survey that has three separate question blocks and logic to display one, two, or all three of them, depending on embedded data passed in at the beginning. If multiple blocks appear for a respondent, they are always in the same order.
I'm looking for a way to do something like:
IF: this is the last block in the survey that the respondent will see, change the submit button to "Submit".
ELSE: keep it as an arrow.
Any suggestions for how to pull this off? I found a couple of questions about conditional buttons based on question choice, but that seemed too far off the mark.
Thank you!
Solved
conditional last-block submit button
Best answer by rondev
We need to change the next button text using java script.
Apply if logic on the embedded data, and based on the value, change the button text using below code:
jQuery("#NextButton").attr({"value":"Submit","title":"Submit"});
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
