web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / confirmation for dropd...
Power Apps
Unanswered

confirmation for dropdown change

(0) ShareShare
ReportReport
Posted on by 75

I have a dropdown menu where the selected item determines the type of items that populate a gallery via another form. If someone changes the dropdown menu after adding items to the gallery, it deletes everything and starts from scratch. I would like to have a confirmation window pop up before the combobox selected item actually changes:

This is what I have so far:

1. OnChange for the dropdown box

Jsharkey_0-1601413851461.png

2. Visible property for the pop up window:

Jsharkey_1-1601413908873.png

On select for the confirm button of the pop up:

Jsharkey_2-1601413981516.png

On select for the cancel button of the pop up:

Jsharkey_3-1601414036556.png

Lastly I have the DefaultSelectedItems property of the combobox as follows:

Jsharkey_4-1601414092702.png

 

The event fires after the box changes successfully meaning that functionally, the selected item will change, but if they press cancel, it should revert. However, even if I press cancel the combo box's value still changes. 

If anyone has a suggestion of how I can implement this it would be greatly appreciated.

 

Categories:
I have the same question (0)
  • Vijay Tailor Profile Picture
    2,961 on at

    HI @Jsharkey ,

    please find the below Approach.

    Add Toggle into Screen and Set te Default Value that you are using for the OnChange properties.
    (No Need to Use UpdateContext) Just Use Conditions like that If(value1=value2 ,true,false)

    VijayTailor_0-1601417045980.png

    Now Hide the Toggle.

    Now Display the popup  Based on Toggle value.

    VijayTailor_1-1601417176571.png

    Hope this solution helps you to resolve your issue.
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • Jsharkey Profile Picture
    75 on at

    The visible property for the pop up window works fine.

     

    I'm trying to present a confirmation message when a user changes the dropdown menu selection ---> I need to change the value of the dropdown menu when the user presses a button:

     

    When the dropdown selection changes we show the popup (the criteria here is correct and can be ignored).

     

    Since we can't prevent the value of the dropdown from actually changing, the following executes after OnChange of the dropdown:

     

    confirm button: keep the dropdown selection the same, update currentCategory

    cancel button: change the dropdown selection back to currentCategory, don't update currentCategory

     

    the dropdown DefaultSelectedItems: Coalesce(currentCategory, Parent.Default)

     

    The problem with the above is that for some reason when I press the cancel button, the dropdown item does not revert to the previously selected item. It remains changed.

    Desired functionality:

    - Dropdown currently selected item is "Customer"

    1. Change dropdown to "Contractor" dropdown, confirmation appears

    2. Click the cancel button indicating we would not like to change. 

    3. The dropdown reverts back to "Customer"  

    Current functionality:

    - Dropdown currently selected item is "Customer"

    1. Change dropdown to "Contractor" dropdown, confirmation appears

    2. Click the cancel button indicating we would not like to change. 

    3. (The issue) The dropdown does not revert back to "Customer"  

  • Jsharkey Profile Picture
    75 on at

    @VijayTailor Any other ideas?

  • Vijay Tailor Profile Picture
    2,961 on at

    Hi @Jsharkey , 

     

    On Pop cancel button dont change the value just reset the combobox, that will reset the defaultselectedValue. 

    Try this once. 

    Thanks

  • Jsharkey Profile Picture
    75 on at

    tried the suggested:

    Reset(cboCategory) does not work.
    Because the combobox is inside of a form, I cannot reset it from outside of the form (the cancel button is outside of the form)

    Thanks, 

    Josh

  • Vijay Tailor Profile Picture
    2,961 on at

    Ohk Then .Last Option Tried and Test with Form.

    For reference - 

    VijayTailor_0-1601658381323.png

    Thanks

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard