Button disable and enable

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
Dan_C
Posts: 63
Joined: Tue Dec 02, 2014

19 Dec 2014

Hi Dmitry,

When all the required fields on a particular tab are complete, I'd like to then enable a "Next" button to go on to the next tab.

I've got the hiding/showing/selecting tabs taken care of thanks to your other responses.

How do I disable and enable a specific next button?

Once I have that I'll add a .change(functionx) to check that all the fields on that tab are not empty and, if true, enable the button.

Thanks again.

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

22 Dec 2014

Hi,

Please, aasign a CSS class to a particuar button e.g. next-button and use it in the JS-editor to get the button and disable/enable it following way:

Code: Select all

$('.next-button').prop('disabled', true); // Disable the button
$('.next-button').prop('disabled', false); // Enable the button

Dan_C
Posts: 63
Joined: Tue Dec 02, 2014

22 Dec 2014

Excellent - thanks.

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 5 guests