How to Disable the Next Button

Hi there,

I have a single step process with two forms, on Form1 I have a NEXT button called Next1 that I want to disable until the page is complete…

On the page I have a HTMLWidget at the Bottom of the page to ensure the button is available with the following code:

From my browser console log I can easily see that there is no error and the code is executing, I have the console message written there.

But the Next Button is not disabled. Any ideas whats happening?