Skip to main content

Notifications

Community site session details

Community site session details

Session Id : hherPHp8p+1dV2mbcYi30k
Power Apps - Building Power Apps
Answered

How to not reset a dropdown after closing and reopening the app(in edit mode)

Like (0) ShareShare
ReportReport
Posted on 10 Sep 2020 02:13:28 by 15

How to not reset a dropdown after closing and re-opening the app? (In edit mode or play mode whichever works but was looking for it working under the edit mode) 
I have a dropdowns with Items =[" ",""Yes","No]; Default=false; Reset= false display mode: edit. It is reseting to the blank " ", I dont know what else to do.

Categories:
  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    on 28 Sep 2020 at 10:46:26
    Re: How to not reset a dropdown after closing and reopening the app(in edit mode)

    Hi@hxb303,

    Based on the issue that you mentioned, do you want the Dropdown to display the previously selected when re-open the app?

    Could you please share a bit more about the scenario, do you mean that it works in Edit/Play mode but not the time when you reopen the app?

    The key is that you should have a target data source where you save your Dropdown selected. For example, you select "Yes" in the Title field which belongs to the first record, at this situation, the ID of this record will be "1". And this is how you save your Dropdown selected.

    There is an SP list named 'dropdown' in your scenario, you need to check which record the Dropdown selected belongs to. 

    I have a test on my side, please take a try as below.

    Set the Items property of the Dropdown as below:

     

    dropdown

     

    Set the Default property of the Dropdown as below:

     

    LookUp(dropdown,ID=1,testdropdown)

     

    Note: The 'testdropdown' is my column to store the Dropdown selected value, please replace it with yours.

    Best Regards,

    Qi

  • WarrenBelz Profile Picture
    146,947 Most Valuable Professional on 13 Sep 2020 at 03:52:51
    Re: How to not reset a dropdown after closing and reopening the app(in edit mode)

    Hi @hxb303 ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • WarrenBelz Profile Picture
    146,947 Most Valuable Professional on 10 Sep 2020 at 22:30:59
    Re: How to not reset a dropdown after closing and reopening the app(in edit mode)

    @hxb303 ,

    Firstly forget about the checkbox - for a drop-down action will be OnChange.

    The Parent.Default was in my first post assuming it was bound to a field in a data source and this is now irreverent now you have said it is not the case. 

    Please refer to my second post where it needs to be set on a Variable from a list you need to create to store the value. Power Apps has to get the required information from somewhere as closing the app deletes any temporary values not stored permanently.

  • hxb303 Profile Picture
    15 on 10 Sep 2020 at 21:54:56
    Re: How to not reset a dropdown after closing and reopening the app(in edit mode)

    What checkbox and OnCheck and on OnUncheck? I am talking about dropdowns to save last selected answer (yes no or blank dropdown). I have already changed dropdown Items= dropdown (list i created from sharepoint) but the Default=Default.Parent you said is still underline in red for in the dropdown property

    Screen Shot 2020-09-10 at 5.53.00 PM.png

    Screen Shot 2020-09-10 at 5.51.26 PM.png

    Screen Shot 2020-09-10 at 5.51.14 PM.png

    Screen Shot 2020-09-10 at 5.51.35 PM.png

    This is what i have.

    So are you are saying i should link this dropdown to a checkbox i create to the On Start App for it to all work ?

  • WarrenBelz Profile Picture
    146,947 Most Valuable Professional on 10 Sep 2020 at 07:23:48
    Re: How to not reset a dropdown after closing and reopening the app(in edit mode)

    @hxb303 ,'

    With no data source, this is not possible. You have to store the value somewhere.

    You could have a separate list with a Yes/No field for each checkbox (you would only need one record) , Patched to the field at OnCheck or OnUncheck, then read and set Variables at App OnStart and Default the controls to the Variable value.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • hxb303 Profile Picture
    15 on 10 Sep 2020 at 06:02:09
    Re: How to not reset a dropdown after closing and reopening the app(in edit mode)

    I just want whatever the last value i select from Items:[“”,”Yes”,”No”] before i close the app to appear after I re-open it.  

    Parent.Default you told me to use is red underlined in the Default property of the dropdown since I am not using any parent datasource in the items section im guessing, i tried Default=Default which is allowed but doesnt change anything. 

    Trying to find if there a way to save the last input in dropdowns in edit mode when closing and reopening the app. No data source.

  • WarrenBelz Profile Picture
    146,947 Most Valuable Professional on 10 Sep 2020 at 05:23:27
    Re: How to not reset a dropdown after closing and reopening the app(in edit mode)

    @hxb303 ,

    Any control will take its Default value when the app is opened. If you want it to display the current field value, then the Default needs to be 

    Parent.Default

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 89 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 60

#3
stampcoin Profile Picture

stampcoin 48

Overall leaderboard
Loading started