The checkbox field is used for true or false statements. The field either reads true, false or no value. The field will save a value of 1 if true and 0 if false in the database. This comes in handy when you have a lot of products that need sorting (ie. clothes being machine washable or not. Packaging recyclable/not recyclable, etc.).
Tip: See also, Basic Field Settings.
Field Creation Form
Content Entry Form
The field operates as such:
TRUE | Unchecked:
FALSE | Nothing: Field not Displayed.
Default Liquid Code
The Edit Code section allows a user to edit how a field prints or functions. The default code for this type of field is found below.
For more information about code customization and the code editor itself, visit our Guide to the Snippet Editor.
Additional Resources & Documentation
Shopify: Liquid Template Language Documentation - Shopify Documentation on advanced liquid theme coding for Shopify developers.
Custom Fields: Displaying Text Based on a Checkbox Value - This Custom Fields article goes in depth on how to use Checkboxes as a way of quickly displaying TRUE or FALSE statements.
Custom Fields: Theming Examples & Tutorials - The Custom Fields tutorials section for more advanced articles for theme coders and designers!