Page 1 of 1

How to re-enable a button on my screen programatically

Posted: Fri Feb 14, 2014 4:00 pm
by araskin3i

I have a button on my screen. In the properties i set disabled to true. However when I programmatically remove this (using removeAttr) the button remains disabled. When I look in the inspector I can see that the CSS class of this button (as well as the surrounding DIV) are still disabled.

Perhaps this is an Appery function I should be calling?


How to re-enable a button on my screen programatically

Posted: Fri Feb 14, 2014 4:44 pm
by Kateryna Grynko

Hi Alon,

How did you disable the button? Did you untick "Visible"? Then to show a button use this code:preAppery("buttonName").show();/pre


How to re-enable a button on my screen programatically

Posted: Fri Jan 23, 2015 4:19 am
by M&M

hi,

I am having exactly the same problem on iOS. Any suggestions? The button remains disabled in iOS, whereas the same code works fine (the button is enabled) on Android.

Thanks,
M&M


How to re-enable a button on my screen programatically

Posted: Fri Jan 23, 2015 7:25 am
by Maryna Brodina

Hello!

Could you clarify what code do you use to enable button?


How to re-enable a button on my screen programatically

Posted: Sat Jan 24, 2015 7:08 am
by M&M

hi,

I changed my code

To DISABLE Button
Old Way:
$("[dsid='myButton']").addClass('ui-disabled');

Changed To:
Appery('myButton').attr('disabled', 'disabled');

To ENABLE Button
Old Way:
$("[dsid='myButton']").removeClass('ui-disabled');

Changed To:
Appery('myButton').attr('disabled', null);

Seems to work. Any problem then I'll get back.

Thanks,
M&M


How to re-enable a button on my screen programatically

Posted: Mon Jul 18, 2016 8:41 pm
by mansour

thank you M&M