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
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (5,565)