Hi Rishabh,
Button Disable Approach:
You can disable the button while the popup is open and enable it again when the popup is closed. This will prevent users from clicking the button multiple times and opening multiple popups.
OnClick
microflow or nanoflow of the button, add logic to check if a popup is already open.Popup Visibility Approach:
You can manage the visibility of the popup based on a Boolean attribute in your entity. This attribute can indicate whether the popup is open or closed.
IsPopupOpen
) in your entity that you're using to manage the popup.OnClick
microflow or nanoflow of the button, add logic to check the value of the IsPopupOpen
attribute.true
, show a validation message or alert to inform the user that they cannot open another popup.false
, set it to true
, open the popup, and set the attribute back to false
when the popup is closed.