Activity Forums Salesforce® Discussions How can I disable any(either custom or standard) button after performing its action?

  • Himanshu

    Member
    August 1, 2016 at 8:07 am

    Hi Pranav,Try the below code that helps you to disable and enable the button.

    My Button

    Disable "My Button"
    Undisable "My Button"

    function disableBtn() {
    document.getElementById("myBtn").disabled = true;
    }

    function undisableBtn() {
    document.getElementById("myBtn").disabled = false;
    }

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos