Disable/Enable Button Object

 2 Replies
 1 Subscribed to this topic
 12 Subscribed to this forum
Sort:
Author
Messages
agersh
Veteran Member Send Private Message
Posts: 81
Veteran Member
Is it possible to disable a button object that I added to a form when the FORM_OnInit() function is called? Then enable the button when the FORM_OnAfterTransaction() function is called.
Ragu Raghavan
Veteran Member Send Private Message
Posts: 477
Veteran Member
This works for me: ("_l239 is the button's element id) function FORM_OnInit() { var vButton = lawForm.getElement("_l239",0); vButton.disabled = true; } function FORM_OnAfterTransaction(data) { var vButton = lawForm.getElement("_l239",0); vButton.disabled = false; }
agersh
Veteran Member Send Private Message
Posts: 81
Veteran Member
Thanks Ragu