cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SP545
Frequent Visitor

Delete button confirmation popup issue

Hello, 

 

1) I do have 3 screens, I have added the "Delete(Trash)" Icon on 3rd screen and trying to get popup confirmation before deleting

 

2) I have added Yes, No buttons, Label, rectangle and grouped together, but I'm getting issue with the "Delete" icon, as shown below 

WhatsApp Image 2020-12-02 at 5.34.02 PM.jpeg

 Not sure what I'm missing here? any inputs, please 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User
Super User

@SP545 

Yes, you cannot select a group of controls like that.

Here is what you need to do:

   On the trash can Icon, set the OnSelect formula to the following:

        UpdateContext({lclScreenAction:"Delete"})

 

   Now on the RectangleDeleteConfirmation control, set the Visible property to the following formula:

        lclScreenAction="Delete"

 

   And for the remaining controls in your group, set the Visible property to the following formula:

        RectangleDeleteConfirmation.Visible

 

    Finally, in the Yes and No buttons, add the following formula to your existing formulas there:

        UpdateContext({lclScreenAction:Blank()})

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

1 REPLY 1
RandyHayes
Super User
Super User

@SP545 

Yes, you cannot select a group of controls like that.

Here is what you need to do:

   On the trash can Icon, set the OnSelect formula to the following:

        UpdateContext({lclScreenAction:"Delete"})

 

   Now on the RectangleDeleteConfirmation control, set the Visible property to the following formula:

        lclScreenAction="Delete"

 

   And for the remaining controls in your group, set the Visible property to the following formula:

        RectangleDeleteConfirmation.Visible

 

    Finally, in the Yes and No buttons, add the following formula to your existing formulas there:

        UpdateContext({lclScreenAction:Blank()})

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Helpful resources

Top Solution Authors
Top Kudoed Authors
Users online (3,816)