Activity Forums Salesforce® Discussions How can we disable the command button after first click?

  • Surbhi

    Member
    September 6, 2016 at 1:26 pm

    Hi Mohit,

    You can use a JavaScript function for disabling the custom button. This function will run with "onclick" event of the button.

    Thanks

  • Charan Tej

    Member
    January 3, 2018 at 10:44 am

    onclick="this.style.display='none';"

    This will remove the button once clicked.

    onclick="this.disabled=true;"

    This will disable the button once clicked.

    Let me know if this doesnt work.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos