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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

CMS - dataojbect seach - defining dropdown


Go to End


624 Views

Avatar
JonShutt

Community Member, 244 Posts

22 September 2011 at 8:43pm

Hello.
in the CMS, i'm trying to define searchable field for my dataobject:

static $searchable_fields = array(
'ID','firstName','lastName',
'Status' => array(
'title' => 'Status..',
'field' => 'DropdownField',
'filter' => 'ExactMatchfilter')
);

however, i want some preset options in my drop down box - such as 'paid' 'cancelled' 'shipped' etc..
any ideas?

cheers