0

Is it possible to call standard edit task action from a lightning component button? I actually want to remove "Mark as Complete" standard button on task record page. and i could not find a way so i am trying to replace standard compact layout with a custom lightning component. But i want to be able to invoke "Edit Task" standard action.

1 Answer 1

1

You want to invoke the standard edit popup in lightning, You need to navigate users to below URL on button click:-

/lightning/r/Task/record-id/edit

You can use force:navigateToURL to navigate via lightning aura component.

Another option would be using force:editRecord to edit the record which invoke the standard edit record panel in Lightning.

editRecord : function(component, event, helper) {
    var editRecordEvent = $A.get("e.force:editRecord");
    editRecordEvent.setParams({
         "recordId": component.get("v.contact.Id")
   });
    editRecordEvent.fire();
}
1

You must log in to answer this question.

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