1

I'm creating a lightning component and need to redirect to custom tab after the user click on Accept button.

I'm using this code but not working and it's is not supported

handleSubmit : function(component, event, helper) {

    var idx = "a055J000000wKxXQAU";
    var navEvt = $A.get("e.force:navigateToSObject");
    navEvt.setParams({
        "recordId": idx,
        "slideDevName": "detailTab"
    });
    navEvt.fire(); 
},
3

According to the documentation the attribute "slideDevName" should be "detail" which is also the default value and not "detailTab" like this

 navEvt.setParams({
      "recordId": "00QB0000000ybNX",
      "slideDevName": "detail"
    });

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.