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 / Reset dropdown Selected?
Power Apps
Answered

Reset dropdown Selected?

(0) ShareShare
ReportReport
Posted on by 25

I have added a dropdown to a screen populated from a collection : however, if a user makes a selection, it remembers that selection whenever they return to that screen, whereas I want it to revert to the first ('dummy') item 'Select from the list...'

 

I have set 'reset' to true and tried adding a default value, but nothing seems to work.

 

When does reset kick in?

When is a default value used?

Is there another way of doing this?

Categories:
  • CU11011415-0 Profile Picture
    472 on at

    Hi,

    If have not already, reset all the form fields when a submit is succesful.

     

    NewForm(FormNameHere)

     

    Hope this helps

  • CU11011415-0 Profile Picture
    472 on at

    Sorry not thinking this early in the morning

     

    Call NewForm(FormNameHere) from the screen your navigating from 

    or call NewForm(FormNameHere) in the OnViisble property of the screen that contains your form.

  • flyte Profile Picture
    92 on at

    What if you are not using a form. Just controls on a screen.  How do you clear the current selections on all of the controls. 

     

     

  • flyte Profile Picture
    92 on at

    Any thoughts here?

     

    Is one approach to create a context variable upon navigation that indicates that we want to "reset" all of the controls on a given screen to their default/initial values, and then do all of this manually within the OnVisible of the screen? 

     

    This seems overkill..

     

    how do we reset controls on a screen to their default / initial / un-selected states?

  • TschoofBAH Profile Picture
    154 on at

    Your best bet would be to make a form just for the purpose of being able to call the NewForm() on it and reset the controls. You could include a button on the page to do this, or if you want it to happen every time you traverse to the page you could put it as part of the screen's OnVisible() event.

  • TschoofBAH Profile Picture
    154 on at

    Just thought about this as well, since forms have to have a data source to work properly.

     

    FOr the data property of the form, put ["form"]. This creates a "datasource" and allows you to make custom cards on said form, which in turn allow you to perform the NewForm() reset to it as well.

  • flyte Profile Picture
    92 on at

    .ok...

     

    So have a look at the Employee Engagement Survey template. There are no forms used. At the end of the survey, convieniently there isn't a "Start New Survey" button. How would one restart this survey, and thus resetting all of the previous selections?

     

     

  • TschoofBAH Profile Picture
    154 on at

    I don't think it is a matter of convenience that you can't restart the survey. Generally you would only want one survey entry per person. In fact, the submit button has a ton of functions in there that seem to check if the person has already made a response to handle that. Going backa nd forth between screens after clicking an answer doesn't reset them either.

     

    The Emplyee Engagement app is nothing more than different screens with different types of input that use back and next buttons to navigate to the prior and next screen, respectively. It was made to show you how to make those things work within powerapps. There would be no need for a reset of the inputs for this app.

     

    Having said that, the only workaround I can see without directly "resetting" all of the inputs (which doesnt seem to be possible) is to place what you want reset into a faux form and use its built-in NewForm() function to do wht you need. I know it is a bit of a hack (M$ if you have a better answer please chime in!) but it would work with minimal extra time.

     

    Beleive me they have left a lot to be desired for app creation within powerapps, and I hope what you ask for is coming soon.

  • TschoofBAH Profile Picture
    154 on at

    to be more precise, the app actually decides to either make a new entry in the DB or patch the entry already created when you click submit.

     

    So much for creating a fully functioning app without writing code.... 😛

  • WinIOSAndroid Profile Picture
    25 on at

    Try as I might, I couldn't get the dropdown to reset using the form solution. However, I have come up with a bodgy workaround.

     

    I set up a global variable (ClearCollect...) on the home page which creates a collection 'vars' with a variable 'temp' = 1 : on every page, the OnVisible multiplies it by -1 so in effect every time the page is loaded, the variable swings from 1 to -1.

    My dropdown list of items is also held in a collection : in each page's OnVisible,

     

    ClearCollect(vars,{temp:First(vars).temp*-1});

    If(First(vars).temp=1,

    ClearCollect(menulist,{Title:"Go to...",Screen:home,URL:""},menu),

    ClearCollect(menulist,{Title:"Go to... ",Screen:home,URL:""},menu))

     

    and the dropdown's items = menulist

     

    in other words, I subtly change the list of items driving the dropdown (note the space after the second 'Go to... ') every time the page loads, so it forgets the old Selected

     

    inelegant but it seems to work!

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 432 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 347

#3
WarrenBelz Profile Picture

WarrenBelz 254 Most Valuable Professional

Last 30 days Overall leaderboard