Rodrigo B Laurindo Posted April 20, 2015 Share Posted April 20, 2015 How can I make a Helperlist with checkboxes, so the user can make a multiple selection from the list? For example: I want to show all countries and the user would be able to choose some of them and then his selection would be saved to database. Link to comment Share on other sites More sharing options...
electriz Posted April 20, 2015 Share Posted April 20, 2015 (edited) 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 April 20, 2015 by PrestaCraft (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now