It does not solve this question.
The issue with the videos solution is the Yes or No button still holds the code. The Yes button has the OnSelect to Remove('Source', ThisGallery.ThisItem), so it can only be used to remove items from that specific gallery.
What I was hoping to achieve is the Yes and No buttons are essentially blank so they could be used for any gallery on any screen for any type of yes or no question. This way I don't have to recreate containers on each screen, or for each gallery.
For example, this doesn't work, but hopefully it paints the picture of what I'm trying to do.
OnSelect for the gallery item Delete button:
Set(varConfirmPopUp, true);
**Waits for you to press yes or no button on the popup**
If('Yes-Btn".Pressed, Remove('Data', ThisItem), If('No-Btn'.Pressed, Set(varConfirmPopUp, false)))
But then that same popup could be used to add an item on a Different screen.
OnSelect for the Add button:
Set(varConfirmPopUp, true);
**Waits for you to press yes or no button on the popup**
If('Yes-Btn'.Pressed, Patch('Data', Defaults...........), If('No-Btn'.Pressed, Set(varConfirmPopUp, false)))