How to add a Search box to a Form

It is possible to include a Search section on a Form, enabling users to search for a record and update it:

A Search panel will slide out from the left when the Search icon is clicked. Users enter a search term and click Go to return matching records. When a record is clicked, values from that record will populate the data entry fields you have added to the Form, where they can be edited:

Edit data

To add a Search section to a Form:

  1. Add data entry fields to your Form.
  2. Expand the Search section by clicking in the Search banner:
  3. Search form

  4. Maximum Results is the maximum number of records that will be returned and displayed to users. Leave blank to return all records that match a user's search or enter a number to limit the number of records displayed.
  5. (Optionally) Lookup: provide a drop list of search values1.
  6. Click to specify which column (or columns) will be searched by the user.
  7. In the Columns field, start keying a field name and select the required field when it displays:

    Search form

    This is the field that will be searched.

    If required, add another search field by clicking Add search column again.

  8. (Optionally) click Add sort column to sort the result set alphabetically or numerically.

    Start keying a field name in the Sort Columns field and select the required field when it displays.

    Tip: A sort field does not need to be a search field selected in the previous step.

    Sort

    By default, fields are sorted A-Z, 0-9. To reverse the order, precede the field name with a minus sign, e.g. -NamLast.

    If required, add another sort field by clicking Add sort column again.

  9. (Optionally) add a filter by clicking .
  10. A filter allows you to refine which records are returned by a user's search.

    Tip: It is possible to use a filter on a Form without a Search box. In this case, a random record that meets the criteria specified by the filter will be displayed when a user accesses the Form. This can be useful for quality checks on records. Details here.

    As this Form is intended for updating the Parties record of people (rather than organizations), we specify that only records where Party Type = Person will be returned by the search:

    Search form

    Note: EMu (version 5.0 onwards): escaped double quotes are required around any search value that includes a space, New Zealand for example, in order to match a value exactly: e.g. \"New Zealand\"

  11. Click to specify which column(s) of data will display when search results are returned.
  12. In the Results field, start keying a field name and select the required field when it displays.
  13. It is possible to specify more than one Results field:

    Search form

    In this example, both NamFirst and NamLast are specified:

    Search form

  14. Save the Form.