You need to sign in to do that
Don't have an account?

Open a modal container from Quick Action based on condition
When I click the quick action I still see an empty container. Is it possible to hide that
#Example.cmp
<aura:component implements="force:hasRecordId,force:lightningQuickActionWithoutHeader" access="global" >
<aura:attribute name="isOpen" type="boolean" default="false" />
<aura:if isTrue="{!v.isOpen}">
<div class="slds-col modal-header slds-modal__header">
<h2 class="title slds-text-heading--medium">Milind Test</h2>
</div>
<div class="slds-modal__content slds-p-around--medium" >
<div>
</div>
</div>
<div class="slds-modal__footer">
<lightning:button variant="neutral" label="Cancel" onclick="{! c.cancelClick }" />
<lightning:button variant="brand" label="Save" onclick="{! c.saveClick }" />
</div>
</aura:if>
</aura:component>

#Example.cmp
<aura:component implements="force:hasRecordId,force:lightningQuickActionWithoutHeader" access="global" >
<aura:attribute name="isOpen" type="boolean" default="false" />
<aura:if isTrue="{!v.isOpen}">
<div class="slds-col modal-header slds-modal__header">
<h2 class="title slds-text-heading--medium">Milind Test</h2>
</div>
<div class="slds-modal__content slds-p-around--medium" >
<div>
</div>
</div>
<div class="slds-modal__footer">
<lightning:button variant="neutral" label="Cancel" onclick="{! c.cancelClick }" />
<lightning:button variant="brand" label="Save" onclick="{! c.saveClick }" />
</div>
</aura:if>
</aura:component>
Yes .. You can do it by using the
Some think like below