- This topic has 2 replies, 2 voices, and was last updated 1 month, 1 week ago by 
ramzi. 
Viewing 2 reply threads
- 
AuthorPosts
 - 
- 
December 27, 2021 at 7:31 am #11381
ramziParticipantI tried the checlist field with the following code:
piklist('field', array( 'type' => 'checkbox', 'field' => 'my_checkbox', 'label' => 'Checkbox', 'value' => 'third', // set default value 'choices' => array( 'first' => 'First Choice', 'second' => 'Second Choice', 'third' => 'Third Choice' ) ));When I see the code from the browser, I found the following result:
<li> <label class="piklist-field-list-item"> <input type="checkbox" id="my_checkbox_0" name="my_checkbox[]" value="first" class="my_checkbox piklist-field-type-checkbox piklist-field-element" /> <input type="hidden" id="my_checkbox_0" name="my_checkbox[]" value="" /> <span class="piklist-list-item-label"> First Choice </span> </label> </li>There is a hidden field come out from the code. What should I do to correct this?
 - 
December 28, 2021 at 11:50 am #11382
 - 
December 28, 2021 at 7:37 pm #11383
ramziParticipantOK, noted.
Thanks you, Steve. 
 - 
 - 
AuthorPosts
 
Viewing 2 reply threads
- You must be logged in to reply to this topic.