How do I store a user selection to a cookie?

Hi guys, looking for some help and guidance on how to store a user’s preference into a cookie so that the page layout stays the same from page to page and from session to session.

In the video clip I show the top left-hand corner of a web page. The checkboxes are only shown here for the purposes of explaining what happens, normally they would be hidden as per the screenshot below.

What I want to do is store and re-use the selection made by the user, and make this selection persistent. So the ‘double chevron’ expands and reduces the left-hand menu, and the ‘phone’ hides or shows the top menu bar. The purpose of these options is to allow the user to increase the size of the main body of the screen where the important information is, in particular on smaller devices.

Screen_Trim.mp4 (586.3 KB)

ScreenCapture%201%202018-11-01

I am really struggling on how to do this in Wappler and am looking for some help and guidance. Here is the relevant code area that I currently have.

I have looked on DMXZone at things like ‘Managing Cookies’ and ‘Setting a Cookie and Filtering a Query Using Its Value’ to see if they could help but I’m getting nowhere fast. Help?

Community Page
Last updated: