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

save a last value of a dropdown control and maintain the previous value as the dropdown control update to a new value.

I need to save a last value of a dropdown control and maintain the previous value as the dropdown control update to a new value.

 

Here is my meager attempt.  But this doesn't work.

 

If(Not(varTargetLang = varLastTargetLang), Set(varLastTargetLang, varTargetLang))

 

The last value needs to be stored even when the app is closed and reopened.  Thanks.

1 REPLY 1
v-monli-msft
Community Support
Community Support

Hi @DonBo ,

 

Please help to clarify a few questions before going any further:

1. By "the last value", did you mean the last option in the dropdown control? For example, if the options are "1","2","3", then 3 is the last value you are referring to?

2. By "maintain the previous value", did you mean that this dropdown control is inside a Form control, and it has an existing value selected, you want to create a new record with this previous selected value to the data source?

 

If my understanding is incorrect, please explain with some sample data. 

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power Apps Community Call Jan. 2022 768x460.png

Power Apps Community Call

Please join us on Wednesday, January 19th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,578)