Saving Checked Checkboxes

So i’m trying to create a website for a checklist for a game i play so it’s easier to keep track of all items that have been gotten, forged and leveled up, It all rely’s on checkboxes but i can’t get them to save, for example i know some sites use cookies to save whatever checkboxes the user created, i also have a login for people so if theres a way to save it using a login account i can do that, i have only dabbled in code and that was years ago. I’m not sure what i need to do, I don’t need a check all button either just able to check 1 box and save that specific box next time the page refreshed. If anyone can help me with that i would be very much appreciative. I’ve been working on this for some time and just about done when i realized i can’t save the boxes i checked.

Hello Tony,

You can use the wix storage api to store keys and values so that on refresh you will still keep that data.
More on the API - here

Goodluck,
Majd

Hi, I am having a similar issue. I would like to incorporate a checklist on my site - sort of a To Do list. This to-do list includes a single checkbox for each item (starting 12 months out from an event, so altogether it has 176 checkboxes). I would like visitors to be able to check off the items that they have completed vs. leaving the ones blank that still need to be completed. I tried to use the code below, however, when the visitors leave the page, the checkboxes are all blank again. Do I need to include something else in my code? I am not familiar with using code at all, so any help would be much appreciated!

import {local} from ‘wix-storage’ ;

// …

local.setItem( “key” , “value” );

Hey Brittany,

This is an old thread. In future please create a new post if you have any questions.

Please include as many details as possible, a snippet of the code that isn’t working and a link to your site.

Thanks!

Dara | Corvid Team