Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Form Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Search Form or Field


Go to End


955 Views

Avatar
Terry Apodaca

Community Member, 112 Posts

20 March 2010 at 9:51am

Is there an easy way to build a Search on a Data Object that has say, 3 or 4 fields, but one of the fields is Location. This location field can be either a Zip Code, Street Address, City, or State.

In other words, is there an easy way to enable one field of a search form to search more than one field in the database/dataobject. I used the getCustomSearchContext() function in the object.