Welcome, Guest
Username: Password: Remember me

TOPIC: checkbox

checkbox 31 Jan 2012 05:35 #1138

  • mossss
  • mossss's Avatar
  • Offline
  • Premium Member
  • Posts: 100
  • Thank you received: 7
  • Karma: 9
I know this could be considered a new functionality, but I'm trying hard to get it to work.

I've created a checkbox.php form input and the checkbox appears fine and is functional on the form (I'm actually trying to use it as a filter).

Radiobox works fine as a filter by the way, just a matter of changing the filter input type from select to radio.

However, when using as a checkbox, I'm always losing all but one checked value, I know this is simply a matter of having the values as an array but I cannot find where to set it.

I know that this is then going to require rewriting the query build, but I think I can do that ok

I'll be more than happy to share when I manage to get it to work. Just a quick pointer on where to do this would be greatly appreciated.

thanks
The administrator has disabled public write access.

Re: checkbox 01 Feb 2012 08:02 #1152

  • mossss
  • mossss's Avatar
  • Offline
  • Premium Member
  • Posts: 100
  • Thank you received: 7
  • Karma: 9
ok, have got this working as far as multi select checkboxes for filtering goes. Was a bit of a struggle but finally realised that need to set a namespace variable up for each of the possible values. (anyone wishing to do the same, just take a look in the /component/controllers/table.php)

This only gives the possibility for selecting multiple filter options though.

I'll add a topic in new functionalities for a multi select field type option. I have a way to get around that problem so I'm not going to attempt it.

admin - at the moment, users can add and remove options by adding records to a linked table. Would it be a bad idea to query this within the controller to set up the namespace variables? or would there be a better place to do this?

thanks
The administrator has disabled public write access.
Time to create page: 0.060 seconds

Get Started