Forums

Multiple select

aandree 15 Mar, 2015
Hi guys, me again...

Please, I am facing a problem with multiple select. I am not able to make CC5 work with this kind of form. I put it in the Header code and tried many variations, e.g.:

<select multiple ...
<select multiple="multiple" ...
<select multiple="true" ...

and was also playing with "name" parameter

... name="fltr[Article][id]" ...
... name="fltr[Article][id][]" ...

The form itself is rendered ok, but it doesn't work for me to list more results than one (always is the last one selected from the multiple select list).

And another question, also associated with multiple select - how can I join more values from the same filter in URL? Is it done just by "+"? Example here:

http://www.domain.com/cc-page?act=index&orderfld=Article.id&orderdrc=asc&fltr[Article][id]=150+151+153

or is there some other syntax?

Thanks a lot
Max_admin 02 Apr, 2015
Hi aandre,

Answers:
<select multiple="multiple"

name="fltr[Article][id][]"


You also need to set the size:
size="5"


URL:
&fltr[Article][id][]=150&fltr[Article][id][]=151&fltr[Article][id][]=153


Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
This topic is locked and no more replies can be posted.