Toggles living on separate page from settings?

I currently am working on a settings page and i am just testing a few things to see how things would work.

i have a settings page where users can update their information and i decided to create an admin settings page where we could enable / disable functionality for our platform.

My question is: Using these toggles, is there a way i can have them on a separate page and have it do what i want or does it have to be on the same page as the element i want to change when toggled on ? i am currently using a conditional for these toggles.

also would like to save the toggle so when a user switches between pages or the page is refreshed, it stays the same

will upload a screenshot as soon as i can

If you want the settings to be stored and kept between page refresh, the only (native) way is to store these settings in database.

You can create a “settings” datatype where you’ll store what you need.
Then on your “user” datatype, add the settings for each user.

So how would i save the toggle?

When toggle is on it stays on and when it is toggled off, it stays off until changed again.

A boolean. Yes/no type of thing

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.