October CMS resources and help articles

Simple and to the point. Optimized by the community.

Default value of 'Switch' fieldtype

1
by kevin@invato.nl, last modified on August 24th, 2023

To make a 'switch' field checked/switched on by default, you have to use the property 'value' instead of 'default'.

showDate:
    label: Show date
    type: switch
    value: 1

Discussion

0 comments

We use cookies to measure the performance of this website. Do you want to accept these cookies?