Activity Forums Salesforce® Discussions How will you retrieve the name of the button that fired the event?

  • How will you retrieve the name of the button that fired the event?

    Posted by MOHIT on June 4, 2020 at 3:06 pm

    Let’s say you have several buttons that reuse the same onclick handler. How will you retrieve the name of the button that fired the event in Salesforce?

    Pooja replied 2 years, 3 months ago 2 Members · 1 Reply
  • 1 Reply
  • Pooja

    Member
    June 4, 2020 at 3:11 pm

    To retrieve the name of the button that fired the event, use event. getSource(). get("v.name") .

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos