Conditionally disable button
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
-
MartinOhara31MemberMember for: 1 year 7 months 2 days
З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.
-
MartinOhara31MemberMember for: 1 year 7 months 2 days
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.