advanced search: allow searching by first/last name; pass values from quicksearch
Overview
Currently, only the sort_name field is exposed to Advanced Search. As a result it's not possible to search by first or last name specifically. In addition, while you can choose first or last name from the quick search option list, selecting one of those options and clicking Enter passes the value to the sort_name field -- where you lose that field-specific filter.
We should add the first/last name fields to Advanced Search and pass values from quick search (when selected) to the appropriate fields.
Example use-case
- Create two contacts, one with "Jones" in the first name field, one with it in the last name field
- From quick search, select first name, enter Jones, and click Enter
The search results will include contacts with Jones in either the first or last name if you have wildcard enabled. If you have wildcard disabled, only records with that value starting the last name will be returned (the opposite of what you were attempting to do via quick search).