You need to sign in to do that
Don't have an account?
Toxtar
Lightning Alternatives to JavaScript Buttons Discover Lightning Actions - Trailhead
I am having trouble with what I am to do with this trailhead module. I am at this stage and have installed lightning component quickcontact.
I am not a dev so this is hard for me.
Create a Lightning Action
To complete this challenge, you need to add a Lightning component to your org. Then use that component to create a Lightning action on the Account object. When the action’s button is clicked, it creates a new contact based on form input. To get started, install this package that contains the component bundle that you'll need to modify.
The Lightning component must be named quickContact. (Does this name need to include the capital C in contact? It is loaded as all lowercase)
Add the appropriate interfaces to the quickContact component. (Hint: there are two.) What does this mean? Is this referring to editing the code?
Create a new action with Label Quick Contact and Name Quick_Contact on the Account object that invokes the quickContact component.
Add the action to the Account Layout page layout.
Having trouble installing your app? Read this article for help.
Any tips would be greatly appreciated.
I am not a dev so this is hard for me.
Create a Lightning Action
To complete this challenge, you need to add a Lightning component to your org. Then use that component to create a Lightning action on the Account object. When the action’s button is clicked, it creates a new contact based on form input. To get started, install this package that contains the component bundle that you'll need to modify.
The Lightning component must be named quickContact. (Does this name need to include the capital C in contact? It is loaded as all lowercase)
Add the appropriate interfaces to the quickContact component. (Hint: there are two.) What does this mean? Is this referring to editing the code?
Create a new action with Label Quick Contact and Name Quick_Contact on the Account object that invokes the quickContact component.
Add the action to the Account Layout page layout.
Having trouble installing your app? Read this article for help.
Any tips would be greatly appreciated.
Build>Customize>Accounts>Buttons, Links, and Actions>New Action click. Set value as below screenshot.
Then click Save.
After this, Build>Customize>Accounts>Page Layouts click. Click Edit in front of Account Layout. Click Salesforce1 & Lightning Actions and find Quick Contact. Then Drag it and drop in Salesforce1 and Lightning Experience Actions section at first position. Then Save Layout and check your challenge.
If it is helpful, then mark it as Best Answer.
Regards,
Alap Mistry
All Answers
quickcontact.cmp: on right side, click Controller, then paste this code.
quickcontactController.js: on right side, click Helper, then paste this code.
quickcontactHelper.js: Then save this all and add quickcontact action to Account page layout.
Build>Customize>Accounts>Buttons, Links, and Actions>New Action click. Set value as below screenshot.
Then click Save.
After this, Build>Customize>Accounts>Page Layouts click. Click Edit in front of Account Layout. Click Salesforce1 & Lightning Actions and find Quick Contact. Then Drag it and drop in Salesforce1 and Lightning Experience Actions section at first position. Then Save Layout and check your challenge.
If it is helpful, then mark it as Best Answer.
Regards,
Alap Mistry
Challenge Not yet complete... here's what's wrong:
The Action 'Quick Contact' was not found on the 'Salesforce1 and Lightning Experience Actions' section of the 'Account Layout' page layout. Please follow the requirements and ensure everything is setup correctly
Alap Mistry
Alap Mistry
Alap Mistry
Failed to save undefined: Invalid definition for null:QuickContactController: null: Source
I coppied the code Alap posted for us. Anyhelp would be great here.
See attached ... having challenges like this in so many modules at > Intermediate & Advanced level .. trying to hit the 200 Trail module range but many sticking points like this ... Appreciate the step by step help ! THX
Thoughts ?
<aura:component implements="force:lightningQuickActionWithoutHeader,force:hasRecordId"controller="QuickContactController">
SEE BELOW.
Read *both these Threads and you will learn & solve this.
Thanks to (1) Alap Mistry / Toxtar https://developer.salesforce.com/forums/?id=9060G000000IBhPQAW
+ (2) Caden Howell & Michelle Morrissey https://success.salesforce.com/answers?id=9063A000000E4tPQAS