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

dropdown box reverting to the first option

It might be a strange practice, but this is exactly what is happening,

in my app, I have an option where users choose an option from a dropdown menu, this dropdown item is filtered from a sharepoint list to show specific items, after choosing this option and some other options, the user click on next to move to a second screen, in the second screen, the user will have also to choose different other options, once user is done, he should click on submit, the submit button will submit a number of forms, (from 1 to 10 forms based on the student input), and will send emails also (from 1 to 10 emails based on the user input), the strange part here that some users are reporting that the app sometimes is reverting back the dropdown menu of the first screen to the first item, which is in fact "sometimes" happening based on the invalid data submit to the forms after submission, when I try the feature from my side, or when I click home, back and whatever, the dropdown menu keep the same value, i.e. there is no reset(dropdown) anywhere in the app.

knowing that I have the same problem with another feature that include only patch, without any submit form


In another thread I saw someone posting this problem, but he was working on an sql server and the reason was PK and FK, any thoughts anyone?

2 REPLIES 2
RandyHayes
Super User
Super User

@JohnnyK 

The value that will be displayed is first governed by what is in the Default property of the Dropdown.  Take a look at that and see what you have there.

Once a user changes the dropdown item, the control will retain its setting until either the control is Reset (which you say it is not) or if the table in the Items property is updated.  I suspect the second to be your issue.  If your submit is altering the datasource that your dropdown comes from, then this CAN have an impact on the selected item.  I say CAN because if the Items property is relatively simple, there usually is no issue, but if there is significant impact on the items, PowerApps will automatically reset the control.

 

However, I would still start the journey at looking at the Default property.

 

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!
JohnnyK
Frequent Visitor

Thank you for the detailed and clear answer, actually I was following up on what you suggested, but still didn't find any refresh for the list source, but what I noticed after some observation, that this is happening only, just after the user log in to the app, and if he directly requested this feature, 
in other words if the user login to the app, directly access the above feature and click on submit, the dropdown box will reset to the first option, is it possible that the app refresh all its source just after starting? 

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,008)