Jump to content

Helperlist with checkboxes for multselection


Rodrigo B Laurindo

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)
Link to comment
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
×
×
  • Create New...