Jump to content

How to create multiple type swap ?


Houssem MAAMRIA

Recommended Posts

i have two sections configuration module, i want to use two form swap in same page configuration module, i have problem the second from doesn't work when click of submit jump to first form swap

 array(
                'form' => array(
                    'legend' => array(
                        'title' => $this->l('Configuration'),
                        'icon' => 'icon-cogs',
                    ),
                    'input' => array(
                        array(
                            'type' => 'swap',
                            'label' => $this->l('New multiple select'),
                            'desc' => $this->l('Show the multiple select'),
                            'name' => 'MULTIPLE_SELECT[]',
                            'required' => false,
                            'multiple' => true,
                            'default_value' => $this->l('Multiple select'),
                            'options' => array(
                                'query' =>  OrderState::getOrderStates((int)$this->context->language->id),
                                'id' => 'id_order_state',
                                'name' => 'name'
                            )
                        ),

......
...
...

...

),

array(
                'form' => array(
                    'legend' => array(
                        'title' => $this->l('Configuration 2'),
                        'icon' => 'icon-cogs',
                    ),
                    'input' => array(
                        array(
                            'type' => 'swap',
                            'label' => $this->l('New multiple select'),
                            'desc' => $this->l('Show the multiple select 2'),
                            'name' => 'MULTIPLE_SELECT2[]',
                            'required' => false,
                            'multiple' => true,
                            'default_value' => $this->l('Multiple select 2'),
                            'options' => array(
                                'query' =>  OrderState::getOrderStates((int)$this->context->language->id),
                                'id' => 'id_order_state',
                                'name' => 'name'
                            )
                        ),

......
...
...

...

),
Edited by Maamria (see edit history)
Link to comment
Share on other sites

  • 2 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...