Jump to content

Helperlist with checkboxes for multselection


Rodrigo B Laurindo
 Share

Recommended Posts

If you want to store each language in separate row, the best thing would be implementing a bool switcher (true / false).

Something like

array(
	'type' => 'switch',
	'label' => $this->l('Is active?'),
	'name' => 'is_active',
	'is_bool' => true,
	'values' => array(
		array(
			'id' => 'active_on',
			'value' => 1,
		),
		array(
			'id' => 'active_off',
			'value' => 0,
		)),
)
Edited by PrestaCraft (see edit history)

Share this post


Link to post
Share on other sites

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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More