Jump to content

Unable to use multi select box


Recommended Posts

Hello,

We are trying to set multiple select option in select box but getting the issue. So below is the code we are trying to use:

array(
  'type' => 'select',
  'multiple' => true,
  'label' => $this->l('Test'),
  'name' => 'TEST',
  'options' => array(
    'query' => array(
        array('id' => 'demo', 'name' => 'demo'),
        array('id' => 'dummy', 'name' => 'dummy'),
    ),
    'id' => 'id',
    'name' => 'name',
  )
),

We are getting the undefined index issue. So please can some one correct this code.

Thanks!

Link to comment
Share on other sites

  • 3 weeks later...

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
×
×
  • Create New...