You need to sign in to do that
Don't have an account?
gurditta.garg@gmail.com
Lightning Custom New Opportunity is not opening up Product Selection Screen
Hi,
We've build a Lightning Component for New Opportunity and we're using in Component
After successful save of the Opportunity it never open up the Production Selection screen automatically even though we have the setting enabled on Opportunity Settings
Thanks in Advance
Gurditta
We've build a Lightning Component for New Opportunity and we're using in Component
<lightning:recordEditForm aura:id="oppEditForm" objectApiName="Opportunity" onsuccess="{!c.handleSuccess}" onload="{!c.handleLoad}" onsubmit="{!c.handleSubmit}" recordId="{!v.originalOpportunityId}" onerror="{!c.handleError}">This is what we have on handleSubmit method
component.find("oppEditForm").submit(eventFields);This is what we have on handleSuccess method
handleSuccess : function(component, event, helper) { var payload = event.getParams().response; var OppId = payload.id; helper.redirectToSobject(component, event, helper,OppId); }This is how we're redirecting in the helper method from above
var navEvt = $A.get("e.force:navigateToSObject"); navEvt.setParams({ "recordId": recId, "slideDevName": "products" }); navEvt.fire();
After successful save of the Opportunity it never open up the Production Selection screen automatically even though we have the setting enabled on Opportunity Settings
Thanks in Advance
Gurditta