You need to sign in to do that
Don't have an account?
Moritz Mueller
navigate to the next screen after .setCallback
Hi all,
I would like to add another condition which forces the next step within a flow after a setCallback is reached;
Any idea what the correct call would be here?
Thanks
I would like to add another condition which forces the next step within a flow after a setCallback is reached;
action.setCallback(this, function(response) { var state = response.getState(); console.log(response.getState()); if (state === 'SUCCESS'){ console.log('Response: ' + response.getReturnValue()); var toastEvent = $A.get("e.force:showToast"); toastEvent.setParams({ "title": "Success!", "message": "entitlement applied.", "type" : "success" }); toastEvent.fire(); component.find("overlayLib").notifyClose(); navigate("NEXT");
Any idea what the correct call would be here?
Thanks
try this code
Uncaught Error in $A.getCallback() [navigate is not a function]
It will wokk only from the salesforce LX application