AccountList.cmp ------------------------
ID
Name
Type
Number Of Employees
Ticker Symbol
Phone
Delete
{!account.Id}
{!account.Name}
{!account.Type}
{!account.NumberOfEmployees}
{!account.TickerSymbol}
{!account.Phone}
AccountListController.js ------------------------- ({ doInit: function(component, event, helper) { // Fetch the account list from the Apex controller helper.getAccountList(component); }, deleteAccount: function(component, event, helper) { // Prevent the form from getting submitted event.preventDefault(); // Get the value from the field that's in the form var form = event.getSource(); console.log(form); var accountName = '<>'; //form.find("account-name").get("v.value"); confirm('Delete the ' + accountName + ' account? (don’t worry, this won’t actually work!)'); } }) Error Message from clicking Delete Button: ------------------------------------------ Sorry to interrupt This page has an error. You might just need to refresh it. Action failed: c:AccountList$controller$deleteAccount [event.getSource is not a function] Failing descriptor: {c:AccountList$controller$deleteAccount}