Light switch field

A simple on/off switch


  • Default to on – Should the light switch be flipped on by default when the field is used for the first time?


Template Use#

Test if a light switch field is turned on by calling the field directly:

{% if entry.yourLightSwitchFieldHandle %}

    <p>Light switch was turned on!</p>

{% else %}

    <p>Light switch was turned off!</p>

{% endif %}