PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 01/26/2018 2:42 PM by  agersh
Disable/Enable Button Object
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages
agersh
Systems Analyst
Martin Health System
Veteran Member
(143 points)
Veteran Member
Posts:73


Send Message:

--
01/24/2018 2:21 PM
    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
    Private
    Private
    Veteran Member
    (887 points)
    Veteran Member
    Posts:309


    Send Message:

    --
    01/24/2018 8:05 PM
    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
    Systems Analyst
    Martin Health System
    Veteran Member
    (143 points)
    Veteran Member
    Posts:73


    Send Message:

    --
    01/26/2018 2:42 PM
    Thanks Ragu
    You are not authorized to post a reply.