checkbox Field

'type' => 'checkbox'

 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'
    )
  ));

Have ideas for improving the documentation?

This documentation is a community effort. Please create an issue or pull request to help!

Improve this page