Default value of 'Switch' fieldtype
1
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
Simple and to the point. Optimized by the community.
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
There are no comments yet
Be the first one to comment