Actions

J1.5 talk

Difference between revisions of "Adding a multiple item select list parameter type"

From Joomla! Documentation

(New page: Has anybody successfully implemented a multiple item select list parameter type ??? EG <select name="params[userid][]" id="paramsuserid" class="inputbox" multiple="multiple"> is generat...)
 
Line 1: Line 1:
Has anybody successfully implemented a multiple item select list parameter type ???
+
I tried this code in my application and it almost worked but not exactly. 
  
EG <select name="params[userid][]" id="paramsuserid" class="inputbox" multiple="multiple"> is generated by the example given on this Forum..  
+
When I selected more than one item, the parameter was saved in the database as: p1|p2 rather than p1,p2 as would be the normal case of html.
  
This "select" syntax  does not appear to have any chance of working as sideline tests do not work.
+
If I then go to the database and change it manually to p1,p2; then it displayed correctly in the administrator..
  
If anyone has succeeded, please reply with at least a yes and some hints.  thanks.
+
Any ideas for a fix?????????????????

Revision as of 09:20, 14 October 2009

I tried this code in my application and it almost worked but not exactly.

When I selected more than one item, the parameter was saved in the database as: p1|p2 rather than p1,p2 as would be the normal case of html.

If I then go to the database and change it manually to p1,p2; then it displayed correctly in the administrator..

Any ideas for a fix?????????????????