Home>Support>Default Checkbox?

Default Checkbox?

By marc, 9 years ago. Last reply by Andrew Misplon, 9 years ago.

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. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 24 days ago Andrew Misplon
    Hi, I Work Here

    Hi 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.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More