Conditionally disable button

rss

Posted by Katy - Dec 16 ’16 at 10:56

 

I am trying to make a button disable when the status field is Completed, I found this tread :

http://forum.spform.com/forms-designer-for-sharepoint-20/button-disable-and-enable-27284/

and here is my code:

 

function ButtonDisable() {
if (fd.field('Satus').value() == 'Completed') {

$('.approve-button').prop('disabled', true);
} else {

$('.approve-button').prop('disabled', false);
}
}
fd.field('Satus').change(ButtonDisable);
ButtonDisable();

but it is not working L

 

 

 

  • MartinOhara31
    Member
    Member for: 1 year 7 months 2 days
    #11 by MartinOhara31 Aug 31 ’22 at 02:59

    Зoint of care software is a revolutionary tool that allows healthcare providers to instantly access and share patient information. It offers a number of easy-to-use features that make it an essential tool for healthcare providers. You can learn this and more here https://vitechteam.com/point-of-care-software-solutions/ . After all, this is one of the best companies in terms of developments for your health. And she specializes like no one else, understands and knows how to do better for the success of your project.

  • MartinOhara31
    Member
    Member for: 1 year 7 months 2 days
    #12 by MartinOhara31 Aug 31 ’22 at 03:00

    Point of care software is a revolutionary tool that allows healthcare providers to instantly access and share patient information. It offers a number of easy-to-use features that make it an essential tool for healthcare providers. You can learn this and more here https://vitechteam.com/point-of-care-software-solutions/ . After all, this is one of the best companies in terms of developments for your health. And she specializes like no one else, understands and knows how to do better for the success of your project.

Displaying 11 to 12 of 12 messages