Need to Disable Next button or change it to Submit halfway through form

I have a form which is looking at if a customer smokes or not. If they say they smoke a vape then they are ineligible in which case they can not continue with the form. I have been asked to block their progress by disabling the Next button or changing it to Submit at that point in which case they would be redirected elsewhere. I can't find a way to change this button to submit or next. The only alternative i was considering is making them jump to the last page when they press next then displaying the error message and allowing them to submit there. However i would rather avoid that as it opens up a bunch of other issues.

Any help would be great thank you

Hello @Ibrahim,

You can hide remaining steps with the code. Find the example in the documentation:
https://plumsail.com/docs/forms-sp/designer/containers/wizard.html#hide-show-step

Hi @Margo

Would this then skip them to the final page of the form where they can press submit?

Is there any functionality that could simply disable the next button or change it to submit anyway?

@Ibrahim,

When you remove the remaining steps, the user will see the submit button. Or, you can directly switch the user to the final step:
https://plumsail.com/docs/forms-sp/designer/containers/wizard.html#open-a-step-without-validation