FUEL CMS Forum
Discussions
Activity
Home
›
Development
›
Modules
Sign In
·
Register
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Categories
Recent Discussions
Activity
Categories
3.3K
All Categories
255
FUEL CMS News
112
News & Announcements
101
Share
273
Support
115
Bug Reports
90
Installation
242
Development
68
Feature Requests
117
Modules
CRITICAL SECURITY VERSION UPDATE:
https://github.com/daylightstudio/FUEL-CMS/releases/tag/1.4.13
How to add multiple checkboxes in form_fields()
pratiknagariya
April 2013
edited April 2013
in
Modules
I did try to add multiple check boxes but i was getting only one check box.
Comments
admin
April 2013
edited 10:56PM
What is this referencing?
pratiknagariya
April 2013
edited 10:56PM
Check below code
$options = array ('1'=> '1','2'=>'2','3'=>'3','4'=>'4','5'=>'5','6'=>'6','7'=>'7');
$fields['user_score'] = array('label' => 'Hotel Star Rating','first_option' => 'Please Select','options' =>$options , 'type' =>'checkbox' );
pratiknagariya
April 2013
edited 10:56PM
$options = array ('1'=> '1','2'=>'2','3'=>'3','4'=>'4','5'=>'5','6'=>'6','7'=>'7');
$fields['user_score'] = array('label' => 'Hotel Star Rating','options' =>$options , 'type' =>'checkbox' )
admin
April 2013
edited 10:56PM
Try type of "multi" with "mode" => 'checkbox'.
pratiknagariya
April 2013
edited 10:56PM
Thanks a lot
Sign In
or
Register
to comment.
Forum Software Powered by Vanilla
Comments
$options = array ('1'=> '1','2'=>'2','3'=>'3','4'=>'4','5'=>'5','6'=>'6','7'=>'7');
$fields['user_score'] = array('label' => 'Hotel Star Rating','first_option' => 'Please Select','options' =>$options , 'type' =>'checkbox' );
$fields['user_score'] = array('label' => 'Hotel Star Rating','options' =>$options , 'type' =>'checkbox' )