Search forms searching multiple fields

3 posts by 2 authors in: Forums > CMS Builder
Last Post: August 3, 2009   (RSS)

By keith_s - July 28, 2009

I have created a categorized membership listing for our local Chamber of Commerce, using CMS Builder.

I have a simple search form located at http://www.bainbridgegachamber.com/membershipListingsNEW.php that is set to search one field. I would like it to search 2 different fields at once (a field named "name" and one named "notes") for the search term entered by the viewer.

Is it possible to do this? If so, how?

Re: [webgfx] Search forms searching multiple fields

By Dave - July 29, 2009

Hi webgfx,

Yes it is, just change your search field from this:
<input type="text" name="notes_keyword" value="">

To this:
<input type="text" name="name,notes_keyword" value="">

And for google style searching (-exluded -words "phrase searching" etc) replace _keyword with _query. For more details on both of those check out the search docs page:
http://www.interactivetools.com/docs/cmsbuilder/viewer_search.html

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Search forms searching multiple fields

By keith_s - August 3, 2009 - edited: August 3, 2009

Dave,

Works great! Many thanks!

[:)]

Keith D Sellars
WebGraffix Media Solutions, LLC
http://www.webgraffix.com