function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
gurditta.garg@gmail.comgurditta.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
<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