Jump to content

Recommended Posts

Posted

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

ref-21052018.png

Posted

Try this:

<?php

$get_field = $fields->get('some_field_name');
$field_options = $get_field->type->getOptions($get_field); 

foreach($field_options as $option) {
    // 
}
Posted (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

 

 

ref-24042018.png

Edited by SIERRA

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...