Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

checkbox 31 Jan 2012 05:35 #1138

  • mossss
  • mossss's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 100
  • Thank you received: 7
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

Please Log in or Create an account to join the conversation.

Re: checkbox 01 Feb 2012 08:02 #1152

  • mossss
  • mossss's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 100
  • Thank you received: 7
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

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.050 seconds

Hi All just wanted to add one more "thank you" voice to all those who discovered the value of this amazing application. The website I was working on went to production few days ago and I do not want to even try to imagine what would it take to build it without j-cook. So - endless thanks keep it running and evolving I believe it deserves to be the core tool for any joomla application! Thanks!
Michael (bmk028 - Forum)  

Get Started