13

I am attempting to replace JS buttons with quick actions. These button simply call a web service method and alert the result and need no user interaction.

With quick action a modal always seems to appear and this is not desirable.

I am calling the Webservice method in the doInit function and firing a toast event with the results and have no need for the modal popup.

Seems an oversight maybe? But is there a way to accomplish this without the modal to closely mimic the JS button functionality?

Ideally we could show the spinner without the modal

Right now I am simply calling

$A.get("e.force:closeQuickAction").fire();

at the end of the doInit but it is not the most ideal in way of a UI to do this IMHO as it flashes the modal on the screen briefly.

  • 1
    I asked in the Lightning Trailblazers org62 group about this, a few months ago, and the response we got was that SFDC understands this usecase but do not have an estimate for delivery yet. FWIW, we created a custom component with a button that sits on the lightning page, instead of using a quick action. – Christian Carter Apr 17 '17 at 23:09
14

I asked in the Lightning Trailblazers org62 group about this, a few months ago, and the response we got was that SFDC understands this usecase but do not have an estimate for delivery yet.

FWIW, we created a custom component with a button that sits on the lightning page, instead of using a quick action. Initially we displayed a spinner inside the quick action modal, so it wasn't completely weird.

  • Yea I have the spinner to but most times it is so quick all you see it the modal appearing and disappearing. Oh well – Eric Apr 18 '17 at 22:37
0

Add this in your code. This removes the modal.

enter image description here

  • 3
    Doesn't work. Please provide copyable code instead of screenshots. – Robert Sösemann Aug 22 '17 at 10:04
0

Just add the below code in your component so that it doesn't show up the modal when you click on the Quick action button

<aura:html tag="style">
    .slds-backdrop {
    background: rgba(43, 40, 38, 0) !important;  
    }
    .slds-fade-in-open {
    display:none !important;
   }
</aura:html>
  • This may work but would also hide the spinner which may be needed at times – Eric Oct 11 '18 at 16:23

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.