Posted in Salesforce

Salesforce : Detect change in Page URL

In Salesforce Lightning Community pages, we may have a logic that needs to be implemented in the Lightning Component when URL changes. This can be captured easily using forceCommunity:routeChange:

Continue reading “Salesforce : Detect change in Page URL”
Posted in Code Snippets, Salesforce

Salesforce Lightning : Get attribute of the elements – Event Handling

To get the attributes of elements that has been targeted (which element has been clicked), we can use two ways:

  1. event.getSource()
  2. and event.currentTarget
Continue reading “Salesforce Lightning : Get attribute of the elements – Event Handling”