Hello everyone
I created my aura component and added it like a button. First I created an action in (Buttons, Links and Actions) section on object and then added it in (page layouts) ->(Salesforce Mobile and Lightning Experience Actions). But when I click button it open empty window. I don't need a window at all. All functionality of my aura is call a method while initialization with

<aura:handler name="init" value="{!this}" action="{!c.doInit}"/>

in aura component

<aura:component implements="flexipage:availableForAllPageTypes,force:hasRecordId,force:lightningQuickAction"
    <aura:handler name="init" value="{!this}" action="{!c.doInit}"/>

this is code ComponentController.js


    doInit: function (cmp, event, helper){
        helper.isUpdatableRecord(cmp, event);

I don't show code of helper because it isn't need, in it is only work with fields. There is the picture below, where you can see the empty win and button "cancel"(i have no it in my component for example...).
I hope I describe the problem clear, thanks for your attention empty window

1 Answer 1


You can use force:closeQuickAction after doing your work to close the modal. It will still briefly appear, but then disappear afterwards. You might want to just add a lightning:spinner while your code is working so the users understand something is happening.

  • it worked for me, but it appears for some seconds. I wanted to hide it absolutely. My colleague advised to move code logic to lwc.
    – sfdv
    Commented Jan 17, 2022 at 8:32

You must log in to answer this question.

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