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 3 years, 11 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

Salesforce Interview Questions and Answers - For Freshers and Experienced Candidates

Video in

Learn most important Salesforce Interview Questions and Answers, asked at every interview. These Interview questions will be useful to all entry-level candidates, beginners, interns, and…