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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Form Questions /

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

Search Form or Field


Go to End


1233 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.