Skip to Main Content
Feature Request FR-3417
Product Area Page Components
Status CLOSED

7 Voters

Add a new action on buttons to close modal dialog directly

angel o. flores t. Public
· Oct 9 2023

Idea Summary
When you have a modal page, you may “Always” need a button to cancel the modal page. so for that we usually create a button Called “CLOSE” or similar, then in the builder, we need to associate a dynamic action instead of submit, and this dynamic action needs an action close dialog.

The idea is to remove this dynamic action and action, and just add a new option in the button properties behavior > action: add a new one called “Close Modal” or similar, this will close/cancel the modal, the same logic that we usually do for CLOSE  modal.

Use Case
This is always used when we create a modal, and will reduce time creating dynamic actions.

This also could be a default action when we create a page from the wizard and the wizard automatically currently creates a dynamic action and action for close modal.

Preferred Solution (Optional)
Just add a new Option in the list of actions of a button.

This is a great idea! You can already achieve this in APEX today with a slightly different approach.

Comments

Comments

  • vincent morneau Admin OP 1.7 years ago

    Hi @aftorres02 

    The APEX team evaluated this idea today. We find that the current setup is adequate for this functionnality. Incorporating a “cancel” action would necessitate adding a "close" action as well, along with additional attributes for returning items, which could complicate all button attributes unnecessarily, even those that can be used to close a modal.

    Thanks for your input!