Hi @starnewc060708
For each pop-up, place a group or a container on the screen that includes the gallery and any other controls you want to display. Make sure they are all initially hidden by setting their Visible property to false.
Assign each button an OnSelect action that updates a context variable to show the related pop-up. For example:
For the "Details" button, you could use:
UpdateContext({showDetailsPopUp: true})
For the "Comments" button, you could use:
UpdateContext({showCommentsPopUp: true})
For the "Attachments" button, you could use:
UpdateContext({showAttachmentsPopUp: true})
Set the Visible property of each pop-up container to the corresponding variable:
Details pop-up Visible property to showDetailsPopUp
Comments pop-up Visible property to showCommentsPopUp
Attachments pop-up Visible property to showAttachmentsPopUp
To close the pop-up, you can have a "close" icon or button inside each pop-up with an OnSelect action that sets the context variable to false, like:
UpdateContext({showDetailsPopUp: false})
Do this for each pop-up with their respective variables.
Here's how it should look in your app's formulas:
For the "Details" button OnSelect property:
UpdateContext({showDetailsPopUp: true, showCommentsPopUp: false, showAttachmentsPopUp: false})
For the "Comments" button OnSelect property:
UpdateContext({showDetailsPopUp: false, showCommentsPopUp: true, showAttachmentsPopUp: false})
For the "Attachments" button OnSelect property:
UpdateContext({showDetailsPopUp: false, showCommentsPopUp: false, showAttachmentsPopUp: true})
For the close button/icon inside each pop-up OnSelect property:
UpdateContext({showDetailsPopUp: false}) // for Details pop-up
UpdateContext({showCommentsPopUp: false}) // for Comments pop-up
UpdateContext({showAttachmentsPopUp: false}) // for Attachments pop-up
By using these context variables, you can control the visibility of each pop-up independently, allowing you to have multiple pop-up galleries within a single screen without the need to navigate to different screens.
Please accept this solution if it resolves the issue. ✅
Best regards,
Muhammad Ali