Jump to content

how to get multiple select input type value in HelperForm in prestashop 1.6

Recommended Posts

Hello ,

 I have used multiple select input type in my modules configuration but when i submit it gives me only last selected options value inspite of all that are selected value for getting value I have used Tools::getValue() function. please give me some solution so that i can get all selected options value

Link to comment
Share on other sites

  • 2 months later...
  • 3 weeks later...

Two persons with the same problem and still not an answer...


Let's see if the number gets to three changes something...


Btw these damned Helpers are really difficult to use (and buggy?) and there is really no documentation at all...(please don't link me the PS doc about them because for me that is definitely not a doc!)

Link to comment
Share on other sites

Ok, the problem could be related to the name give to the select input type.


It needs to be something like:

  'type' => 'select',
  'name' => 'your_name[]',
  'multiple' => true,
  'options' => array(

Beware of the square brackets for the select input type name [] .


They aren't automatically added by the `'multiple' => true` directive! But actually I think they should.


I hope I solved the problem, @NishantVadgama if so go on and mark the topic as solved ;)

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

  • Create New...