Skip to Content
Droot Developers

What a Lookup Dropdown Searches

What a lookup dropdown searches: the title and the summary's text, lookup and user fields, and who may match what.

A lookup dropdown shows each option's title, and under it the target model's summary (a line such as a phone number and an email, or the project an activity belongs to). Shown is not the same as searchable. What a typed term is matched against is decided by the field's type:

The model's field Matched by the typed term
The title field Yes: the text. A user title matches the person's name or email
A summary field of type text, textarea, email, phone or url Yes: the text, as typed (case does not matter, nothing is a pattern)
A summary field that is a lookup Yes: the display name (title) of the record it points at
A summary field that is a user Yes: the person's name or email
A summary select, date, number, boolean or other type No: they are stored as a key or a value, not as the text shown
A field that is not in the summary No
{ "key": "site.task", "titleField": "name", "summary": { "fields": ["project"] } }

With this summary, many tasks can share one name and differ only by project: typing the project's code or name finds them.

  • One hop. A summary lookup matches the title of the record it points at, not the title of what that record points at.
  • Access. The term is matched as the reader: records the reader's data policies hide are not matched, and a field the reader's role may not read (the summary field itself, or the target's title) is not searched, because matching it would reveal it. An encrypted field is never searched.
  • Broad terms. A lookup's name that matches more than 1,000 records narrows to the first 1,000 by name: type more of it.
  • Nothing matched is no options, never every option.
  • The same rules apply to a form's dropdown (the field's options) and to the plain lookup list, and a report's search box matches a lookup by the display name in the same way (see searchFields on a report view).

You do not need a duplicate text field only to make a summary searchable: put the lookup itself in the summary.