Default Checkbox?
Hello Support,
I created my own widget and its working fine, but im finetuning some things and i would like to make several checkboxes checked by default.
I checked the documentation , see beneath. But the checkboxes arent checked by default, and cant get it working. What am i doing wrong? Hope to hear from you soon.
Thanks! Marc
$form_options = array(
‘some_boolean’ => array(
‘type’ => ‘checkbox’,
‘label’ => __( ‘Allow this thing?’, ‘widget-form-fields-text-domain’ ),
‘default’ => true
This is our free support forum. Replies can take several days.
Need fast email support? Get SiteOrigin Premium
Replies
1Hi marc
Nothing obvious jumping out. Can we checkout the rest of the code?
Replies on this thread are closed.
Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.