This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Default Checkbox?

10 years ago · Last reply by Andrew Misplon 10 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.

Need fast email support? Get SiteOrigin Premium

Replies

1
  1. Andrew Misplon Staff 10 years, 5 months ago

    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.

Have a different question or issue?

Start New Thread