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
javed786javed786 

how to close quick action close button in lightning?

I need to hide the close button of quick action model.
Raj VakatiRaj Vakati
Call this method $A.get("e.force:closeQuickAction").fire() will close the modal dialog. 

sample code
 
({
       createRecord: function(component, event, helper) {
          var createRecordEvent = $A.get("e.force:createRecord");
          createRecordEvent.setParams({
             "entityApiName": "custom_obj__c",
              "defaultFieldValues": {
            'Name' : 'Abc'
            }
          });
          createRecordEvent.fire();
$A.get("e.force:closeQuickAction").fire();
       }
    })

 
Raj VakatiRaj Vakati
https://salesforce.stackexchange.com/questions/195973/how-to-hide-default-popup-of-quick-action/195994
javed786javed786
I need to remove the close button of the model.

Above model showing the "X" button ,I don't want this button how i can hide this button.
Adam TolbertAdam Tolbert
I also am in need of either hiding this X or trying to react to the users click of the button. Has anyone found a good solution for this?