cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

Dropdown defaults won't reset

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
New Member

Re: Dropdown defaults won't reset

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 

View solution in original post

5 REPLIES 5
Highlighted
Resolver II
Resolver II

Re: Dropdown defaults won't reset

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. 

Highlighted
New Member

Re: Dropdown defaults won't reset

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

Highlighted
Resolver II
Resolver II

Re: Dropdown defaults won't reset

@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.

Highlighted
New Member

Re: Dropdown defaults won't reset

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!

Highlighted
New Member

Re: Dropdown defaults won't reset

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 

View solution in original post

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Top Solution Authors
Top Kudoed Authors
Users online (7,608)