This topic is locked
[SOLVED]

Button status

12/12/2023 1:02:50 PM
ASPRunner.NET General questions
W
Willie531 authorDevClub member

Hi All,

How can I check if button has been disabled using a custom button?

I've tried using the following on the client after, but it always returns false.

var buttonID = "matrixvalue2_1button_ID" ;
console.log( "2 13 button Status: " + Runner.isDisabledButton( buttonID) )

Thank you
admin 12/15/2023

Here is the code that works.

var buttonID = "matrixvalue2_1button_ID";
var status = "Enabled";
if(pageObj.getItemButton(buttonID).hasClass('disabled'))
status = "Disabled";
swal(status);