SIERRA Posted May 21, 2018 Posted May 21, 2018 I created a checkbox field as below. How to display the list of check boxes in a form in front end for the user to choose from. Thanks
lokomotivan Posted May 21, 2018 Posted May 21, 2018 Try this: <?php $get_field = $fields->get('some_field_name'); $field_options = $get_field->type->getOptions($get_field); foreach($field_options as $option) { // }
SIERRA Posted May 21, 2018 Author Posted May 21, 2018 (edited) Thanks. To get the text of the option field I am using below code $title_txt = $fieldtypes->get('FieldtypeOptions')->getOptions("item_category")->get('id=1')->title; I have also included Chinese version also as below. But while accessing the chinese url this is not showing chinese text. Is there any thing I need to do additionally Edited May 21, 2018 by SIERRA
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now