You need to sign in to do that
Don't have an account?
Stéphane C.
How to overwrite "New quote" action with Lightning component?
I want to overwrite "New quote" action with Lightning component. I have follow this trailhead (https://trailhead.salesforce.com/fr/projects/workshop-override-standard-action) but I have some errors.
CMP quoteDialog
CMP quoteDialog
<aura:component implements="flexipage:availableForRecordHome,force:hasRecordId" access="global" > <aura:attribute name="picklistValues" type="Object" /> <c:PicklistValues sObjectName="Quote" fieldName="productFamily__c" picklistValues="{!v.picklistValues}" /> <lightning:select aura:id="quoteFamily" name="quoteFamily" label="Family"> <aura:iteration items="{!v.picklistValues}" var="item"> <option value="{!item}">{!item}</option> </aura:iteration> </lightning:select> <lightning:button variant="neutral" label="Cancel" /> <lightning:button variant="brand" label="Submit" /> </aura:component>I don't think I have to change another thing.
Please try this. And in your javascript controller: Hope this helps.
Kindly mark this as solved if the information was helpful.
Thanks,
Nagendra
I will test your code soon.