A quick step-by-step guide on adding checkboxes and a few ideas how to use them to manage and moderate your website content Â

Did you know checkboxes are great not only for creating various to-do lists but also they can be a good alternative to copy-pasting while you work on your content? We gathered a few ideas on how you can use checkboxes for your SpreadSimple websites, but first let's cover how to add them to a Google Sheet.

To add checkboxes into the adjacent cells, grab the fill handle and then drag your checkboxes through the cells.


And you are good to go!
You can also change the default values (FALSE for empty cells, and TRUE for the checked ones). This is completely optional but we’ll be using this step later. If you want to add your custom values, right-click on the cell with a checkbox and select Data validation. On the Data validation window tick the Use custom cell values option, add your values into the corresponding fields, and save the changes.


And you can always remove them by disabling the Use custom cell values on the Data validation window:

That's it! Now let's move to the most interesting part.
Here are a few ideas that hopefully you will find inspiring and useful for your projects.
As you probably know, you can highlight some of your cards or listings on the site by using .sv-is-highlighted class:


So to highlight an item, we need to make sure that the corresponding row has the required sv-is-highlighted value in a system column named .class.
But instead of copying and pasting sv-is-highlighted every time, why don’t we create one more column with checkboxes, and decide which items we want to highlight simply by ticking the boxes? All we need is two columns, checkboxes, and a Google Sheets =IF function.
Here’s what we do:


=IF(B2,"sv-is-highlighted","")
This means that if a checkbox in the Highlighted column is ticked, there will be the corresponding value in our .class column cell.

And we copy the formula by dragging the fill handle down the column.

Now we can simply tick the box in a row to highlight that item on the website:

This was first approach, the "classic" one. And there's another way to use checkboxes for highlighting without =IF formula.
What we need to do here is to:
sv-is-highlighted to the Checked field.-) to the Unchecked field.
After that, if a box is checked, the cell will have the necessary value for system to highlight the corresponding item on the website.
And now let's move on to the second idea.
As you know, SpreadSimple displays all the data from a sheet, and sometimes you may want to choose which data to display on the website and which to hide. Of course, in such cases, you could manually add or delete certain rows from your source sheet, but a more convenient way to arrange that kind of content moderation is to use checkboxes alongside the =FILTER function.
What we need to do:



=FILTER('Master Sheet'!B2:Q21,'Master Sheet'!A2:A21 = TRUE)

… and get the filtered content just like this

This method can be great for cases when, for example, you are building a directory and you’re using a form to collect your users’ submissions. This way you can pre-moderate the content submitted via form before it appears on the website by just checking a box.
These were our ideas on using checkboxes for content management. Hope you find them helpful for your projects or they will inspire you and you'll find some use cases of your own.
