are multi-value searches still not working within CMSB?

4 posts by 3 authors in: Forums > CMS Builder
Last Post: February 10, 2014   (RSS)

By Codee - February 7, 2014

Hello IT,

Are searches on multi-value list fields still not available with CMSB?  I have a client with a field entitled "type" and a multi-value dropdown with choices like "interior, exterior, service, product, etc.".  If the list page is inventoryList.php, the browser url of

http://www.sitename.com/inventoryList.php?type=interior does not produce any filtered results.

By Damon - February 10, 2014

Hi,

Searches on multi-value list fields should work in CMS Builder. I tested locally and it works for me.

Is the multi-value dropdown with choices "interior, exterior, service, product, etc." just the labels or the actual values stored in the database?

Also, what version of CMS Builder are you using?

Cheers,
Damon Edis - interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

By Dave - February 10, 2014

Hi Terry, 

You can search for single values with the current version, just make sure inventoryList.php has 'allowSearch' => true,

And the latest beta (and upcoming release) supports OR searches for multiple values (as you'd have if you selected multiple values from an <select name="type" multiple="multiple" size="3"> type of multiple value list) if you add square brackets before the =  eg: inventoryList.php?type[]=interior&type[]=exterior OR if you add them in the name of the select as name="type[]".

Hope that helps!

Dave Edis - Senior Developer
interactivetools.com