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(); 
},

1 Answer 1

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"
    });

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .