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 / Dropdown defaults won'...
Power Apps
Answered

Dropdown defaults won't reset

(0) ShareShare
ReportReport
Posted on by 13

Hey All,

 

I've recently noticed a problem in which my Dropdown menu values will not reset correctly.

 

I have an application which has records, of which all are laid out exactly the same and use the same fields and collection.

 

The problem I am noticing is that it now pulls the dropdown values from the most recent record I was on. For example, If I have a record #3 which is fully filled out, and record #4 which is incomplete, if I click on record 3, then go back and click on 4, it will carry over the dropdown values from 3. This is only happening with dropdown menus, all other text and date fields reset perfectly normally.

 

In the screenshot I provided, it shows what *Should* be a completely empty record, but as you can see, it has pulled in the dropdown values from the most recent record I was on.I am using a variable called ResetVar to reset my collections.

 

Has anyone had a similar issue to this? It seems to only be the dropdown menus which are not being properly reset by my ResetVar variable.

powerapp1.png
Categories:
  • datamaster Profile Picture
    250 on at

    Hi @ATRMK   are you explicitily resetting the dropdowns "reset(dropdown)"? Also have you set the default values to a value availble in the dropdown?

     

    ---------------------------------------------OfficePowerUser.com--------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members. If you thought this post was helpful, please give it a Thumbs Up. 

  • ATRMK Profile Picture
    13 on at

    Hey @datamaster !

     

    I'm actually not using the Reset() at all, because I want users to be able to go back into the record and view the information. Sorry I didn't mention that 🙂

     

    For the default values, i'm actually using the Current value of the collection. Shown in the attachment.

     

    I should also add that this seems like purely a display glitch, because when I go to view my current collection, it's empty as it should be. Very odd!

     

    Thanks for your help!

    powerapp2.png

  • datamaster Profile Picture
    250 on at

    @ATRMK  if you are using a form to display your data you should set the default value of the drop down to "thisitem.typeofwork" so that if the user selects a different option and does not save then navigates away. You want to reset the drop down so when they navigate back the values goes back to the correct value of the record. Another thing to look at is to check the status of the form. If it is in New mode set your default value else set it to the "thisitem.typeofwork". example in the default you could set it as If(EditForm1.Mode=New,varYourDevaultValue,ThisItem.typeofwork)

     

    ---------------------------------------------------OfficePowerUser.com----------------------------------------------------------
    If this post helps answer your question, please click on
    “Accept as Solution” to help other members. If you thought this post was helpful, please give it a Thumbs Up.

  • ATRMK Profile Picture
    13 on at

    Hey @datamaster ,

     

    The problem for is that I'm actually not using a form because these fields write to different tables in my database, so actually each control is individual.

     

    To me, it really seems to be a display glitch...when I go into my collection, it's empty (as it should be), yet still the dropdowns display the values from whatever field I was previously on. So strange. I think I might have to put a support ticket in or something.

     

    Thanks for the response! I appreciate it!

  • Verified answer
    ATRMK Profile Picture
    13 on at

    Hey All,

     

    I figured out what is happening.

     

    For some reason, the ClearCollect I have when entering my record no longer works on the dropdowns (well, the collect works, but not the clear). So, i am adding to my back button a manual reset like Reset(dropdownvalue1) on leaving the page. 

     

    Thanks for the help @datamaster 

  • 1o0o1o1 Profile Picture
    8 on at

    I was having a similar problem as to why I'm here, using "Gallery.Selected.Item' as my default value but when leaving and resetting the gallery (To make sure an item was not selected) and dropdown (To reset the text) and entering a new blank record the previous default value was still in the dropdown (only an issue for the dropdown) I have used "If(IsBlank(Gallery.Selected.Item), "", Gallery.Selected.Item) which seems to work well, I'm retrieving my item from SP so its a little different but this should work the same with a collection. Thought I would put this here in case this helps anyone else.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard