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

Save Power App State

Hi all,


I have a Power App with a screen full of Toggles. Please note on this particular screen I do not have a datasource, it's merely 8 items on the screen with a toggle item next to each one. My issue is the Power App will not save the state of the toggle's when refreshed.  So for example all toggles are switched to ON, refreshing the Power App puts them all back to Off.

 

In case this is needed, the reason I don't have a datasource is simply because it's not required. It's essentially a screen for Flows to be turned on or off based on their toggle value. I'd like the toggle's to remain at what their value was during the app session and not reset back to off.

 

Thanks 🙂

1 REPLY 1
BCLS776
Super User
Super User

Is there anything stopping you from using an external data source to save this state info for you? As a web app, Power Apps don't read/write cookies so they don't implicitly remember a user's state.

 

If you are using mobile devices, a collection combined with the SaveData() & LoadData() functions is a great wat to do this.

_________________________________________________________________________________________
Help the community help more users by choosing to "Accept as Solution" if this post met your needs. If you liked the post and want to show some appreciation, please give it a Thumbs Up.

Helpful resources

Announcements
User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

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,752)