Last active
January 16, 2016 03:38
-
-
Save sbruner/ddfadb41a70a6055b5d8 to your computer and use it in GitHub Desktop.
Piklist: field: multiselect
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
piklist('field', array( | |
'type' => 'select', | |
'field' => 'my_multiselect', | |
'label' => 'My Multiselect', | |
'choices' => array( | |
'first' => 'First Choice', | |
'second' => 'Second Choice', | |
'third' => 'Third Choice' | |
), | |
'attributes' => array( | |
'multiple' => 'multiple' // Allow a select field to accept multiple selections | |
) | |
)); | |
?> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment