Skip to content

Instantly share code, notes, and snippets.

@sbruner
Created January 16, 2016 03:51
Show Gist options
  • Save sbruner/4e0ea64f8174d66a1ba1 to your computer and use it in GitHub Desktop.
Save sbruner/4e0ea64f8174d66a1ba1 to your computer and use it in GitHub Desktop.
Piklist: field: checkbox
<?php
piklist('field', array(
'type' => 'checkbox',
'field' => 'checkbox',
'label' => 'Checkbox',
'value' => 'third', // set default value
'choices' => array(
'first' => 'First Choice',
,'second' => 'Second Choice',
,'third' => 'Third Choice'
)
));
?>
@knalleDK
Copy link

there is an extra comma at line 10/11 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment