[Resolved] checkbox field: how to configure default 'off'
I have added a custom meta field.
Field type is “Checkbox”.
When creating the field, I have the option to enter a Value.
What it says with that option is: “The value you set will become the default value for all users.”
I want the default value of the checkbox field to be unchecked. So I don’t enter a default value.
Next I used the short code form builder to make a form with this field.
But, when user checks the box and clicks ‘Submit’, this change is not saved.
If I edit the custom meta field and enter something in the Value box (ie: “Yes”), then the form does work correctly. Unchecking and checking the box is saved when the form is submitted. But the problem with this is that by default the checkbox is checked instead of unchecked.
My question is: how do I configure the custom meta field of type checkbox such that it is unchecked by default, and saves correctly when the form is submitted?
It seems to me that in the setup there should be separate fields for:
– ‘Checked’ value
– Default value
- The topic ‘[Resolved] checkbox field: how to configure default 'off'’ is closed to new replies.