Forum
Assign checkbox a default value
If I am using a checkbox like this in my template:
<perch:content type="checkbox" id="show" value="Yes" label="Show on Website?" />
can I assign a tag attribute default value using default = "No"
?
I can see this in the docs for text fieldtype but does it work with checkbox?
Checkboxes only have one value - that of the
value
attribute - or no value at all. You can't give them a different value.