Hello!
I created a "checkbox" Input and a corresponding "showViewed" variable => I will use the variable in a Filter to show only specific items.
This part is fine, even if the formulas are a little more tricky since we have to use the "checked" attribute and not the value that is passed by the event.
But, I would like to keep the user preferences so that it goes back next time the user opens the page. For this, I suppose that Local Storage is the way to go.
I tried different things, but I can't make it work properly (in 'preview' mode).
So, how can this be achieved? (let's call the Local Storage variable "showViewedLocal".
- The first time the user opens the web app in a browser, "showViewedLocal" doesn't exist.
- When should I load "showViewedLocal"? on the onLoad event? And shall I store this variable to "showViewed"
- When should I store "showViewedLocal"? on each "change" event of my checkbox?
If you know any tutorial I could use to learn, it would be great!
Thanks
Benjamin