> For the complete documentation index, see [llms.txt](https://docs.valorx.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.valorx.com/valorx-fusion/runtime/runtime-ux/search-and-select.md).

# Search and Select

The Search and Select screen opens at runtime when a [**Query Task's**](https://docs.valorx.com/valorx-fusion/design-studio/tasks/query.md) **Mode** is set to **User Selection (Full)** or **User Selection (Compact)**. It lets the user narrow down records with filters and choose which ones the task should continue with. A Query Task in **Standard** mode runs without this screen.

The screen title shows the Query Task's **Name** (for example, *Account Query*). The filters, columns and selection behavior all come from how the Query Task is configured.

## Full vs Compact

Full shows filters and a record list to pick from. Compact shows only the filters and continues with every record that matches.

<table><thead><tr><th width="176.44439697265625" valign="middle"></th><th width="298.888916015625" align="center" valign="middle">User Selection (Full)</th><th align="center" valign="middle">User Selection (Compact)</th></tr></thead><tbody><tr><td valign="middle">Filters panel</td><td align="center" valign="middle">Yes</td><td align="center" valign="middle">Yes</td></tr><tr><td valign="middle">Search box</td><td align="center" valign="middle">Yes</td><td align="center" valign="middle">No</td></tr><tr><td valign="middle">Record list</td><td align="center" valign="middle">Yes, with a checkbox per record</td><td align="center" valign="middle">No</td></tr><tr><td valign="middle">Records passed on</td><td align="center" valign="middle">The records the user selects, or all matching records</td><td align="center" valign="middle">All matching records</td></tr><tr><td valign="middle">Best for</td><td align="center" valign="middle">Picking specific records</td><td align="center" valign="middle">Quickly scoping a set by filter values</td></tr></tbody></table>

## User Selection (Full)

Full mode shows a record list the user picks from, with a search box. The filters panel appears only when at least one search field is enabled in the Query Task.

<figure><img src="https://2472585788-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MFqFFf4143HS0_Wagnz%2Fuploads%2FTsoJqmaNirrH6nSRXpiJ%2Fimage.png?alt=media&amp;token=0e96d35b-0fee-4d95-9dbb-40828b54576b" alt=""><figcaption><p>Search and Select, Full mode</p></figcaption></figure>

### Screen Layout

<table data-search="false"><thead><tr><th width="152.33331298828125" valign="top">Area</th><th valign="top">What it does</th></tr></thead><tbody><tr><td valign="top">Header</td><td valign="top">Shows the Query Task name, with the header subtext under it when one is set. Also holds the Try new Search &#x26; Select toggle and the close (X) button.</td></tr><tr><td valign="top">Filters panel</td><td valign="top">One filter per search field. Hidden when no search field is enabled.</td></tr><tr><td valign="top">Preset filters</td><td valign="top">New Preset saves the current filter values as a preset. The Preset Filters dropdown lists Default (locked) and saved presets.</td></tr><tr><td valign="top">Reset</td><td valign="top">Clears all filter values.</td></tr><tr><td valign="top">Apply Filters</td><td valign="top">Runs the query with the current filter values and refreshes the list.</td></tr><tr><td valign="top">Search box</td><td valign="top">Searches CRM again by keyword, not only the records already loaded.</td></tr><tr><td valign="top">Record list</td><td valign="top">Shows the display fields as columns, in their configured order. Each column header shows an icon for its data type.</td></tr><tr><td valign="top">Footer</td><td valign="top">Multi Select: Select N matching records in CRM. Single Select: Showing N matching records in CRM.</td></tr><tr><td valign="top">Next</td><td valign="top">Continues with the selected records. Disabled until a record is selected.</td></tr><tr><td valign="top">Cancel</td><td valign="top">Closes the screen without selecting records.</td></tr></tbody></table>

### Single Select vs Multi Select

The Query Task's Record Selection Type decides how many records the user can pick.

<div><figure><img src="https://2472585788-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MFqFFf4143HS0_Wagnz%2Fuploads%2F96Vb0OAkMtgDlubyEk2X%2FSingle%20Select%20New.png?alt=media&amp;token=541998ed-c282-4c8a-8f98-3586c1623b3c" alt=""><figcaption><p>Single Select</p></figcaption></figure> <figure><img src="https://2472585788-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MFqFFf4143HS0_Wagnz%2Fuploads%2FpEAR0DvzgPoqMrQACyJe%2Fimage.png?alt=media&amp;token=01087c4f-3666-48fc-ad89-3e33225bc478" alt=""><figcaption><p>Multi Select</p></figcaption></figure></div>

<table data-header-hidden><thead><tr><th width="165.33331298828125" valign="top"></th><th valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top"> </td><td valign="top"><strong>Single Select</strong></td><td valign="top"><strong>Multi Select</strong></td></tr><tr><td valign="top"><strong>How to select</strong></td><td valign="top">Click a row. The selected row is highlighted. No checkboxes.</td><td valign="top">Tick the checkbox of each record, or the header checkbox to select all loaded records.</td></tr><tr><td valign="top"><strong>Select all matching records</strong></td><td valign="top">Not available</td><td valign="top">Select N matching records in CRM selects every matching record, including those not loaded.</td></tr><tr><td valign="top"><strong>Footer text</strong></td><td valign="top">Showing N matching records in CRM (Old: Showing 500 of N matching records)</td><td valign="top">Select N matching records in CRM</td></tr><tr><td valign="top"><strong>Records loaded in the list</strong></td><td valign="top">Fixed at 500. Max Records can't be changed.</td><td valign="top">500 by default. Set Max Records to change it.</td></tr></tbody></table>

### Select Records

{% stepper %}
{% step %}
If filters are shown, set one or more filter values (or pick a preset), then click Apply Filters.
{% endstep %}

{% step %}
Optionally type in the search box to search by keyword.
{% endstep %}

{% step %}
Select records:

* **Single Select**: Click one row.
* **Multi Select**: Tick the records you want, or tick Select N matching records to take every match
  {% endstep %}

{% step %}
Click Next.
{% endstep %}
{% endstepper %}

<figure><img src="https://2472585788-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MFqFFf4143HS0_Wagnz%2Fuploads%2FbrNLVETi3E3F11BmpsHM%2FSelect%20Record.gif?alt=media&amp;token=8647448e-061d-44ef-8d2d-4246380e3a7e" alt=""><figcaption><p>Select Record(s)</p></figcaption></figure>

## User Selection (Compact)

Compact mode shows only the filters panel, with no record list. The task continues with every record that matches the filters.

<figure><img src="https://2472585788-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MFqFFf4143HS0_Wagnz%2Fuploads%2FeQGLoDPe9Rn8aSzndMI7%2Fimage.png?alt=media&amp;token=7e9e96d3-e3bb-4ec9-9506-b39fa5008374" alt=""><figcaption><p>Search and Select, Compact mode</p></figcaption></figure>

### Screen Layout

<table data-search="false"><thead><tr><th width="166.77783203125" valign="top">Area</th><th valign="top">What it does</th></tr></thead><tbody><tr><td valign="top">Header</td><td valign="top">Shows the Query Task name, the Try new Search &#x26; Select toggle and the close (X) button.</td></tr><tr><td valign="top">Filters panel</td><td valign="top">One filter per search field set in the Query Task, shown as <em>Field name</em> + operator + value.</td></tr><tr><td valign="top">New Preset</td><td valign="top">Saves the current filter values as a preset to reuse later.</td></tr><tr><td valign="top">Reset</td><td valign="top">Clears all filter values.</td></tr><tr><td valign="top">Next (count)</td><td valign="top">Continues with all matching records. The badge shows how many records match, and updates as filters change.</td></tr><tr><td valign="top">Cancel</td><td valign="top">Closes the screen without selecting records.</td></tr></tbody></table>

### Select Records

{% stepper %}
{% step %}
Set one or more filter values.
{% endstep %}

{% step %}
Click Next.
{% endstep %}
{% endstepper %}

<figure><img src="https://2472585788-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MFqFFf4143HS0_Wagnz%2Fuploads%2Fpm3udRCrlFFhvUd7jnNW%2FSelect%20Record%20Compact.gif?alt=media&amp;token=1a32256a-c255-44f0-8fbf-d8bdf445984e" alt=""><figcaption></figcaption></figure>

### Filters: List View and Operators

Both features work in Full and Compact, on the new and old screens.

#### Pick Values from A List (In / Not In)

When a search field's operator is In or Not In, the user can pick filter values from a list of records instead of typing them.

<table data-header-hidden><thead><tr><th width="145.33331298828125" valign="top"></th><th valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top"> </td><td valign="top"><strong>New (toggle on)</strong></td><td valign="top"><strong>Old (toggle off)</strong></td></tr><tr><td valign="top">Open the list</td><td valign="top">Click + in the Select Value(s) field</td><td valign="top">Click the list icon to the right of the filter</td></tr><tr><td valign="top">Dialog</td><td valign="top">Add value(s) for <em>Field</em></td><td valign="top"><em>Object</em> - (<em>Field</em>)</td></tr><tr><td valign="top">In the dialog</td><td valign="top">List View toggle, search, Select all, an Empty option, and the picked values shown as chips</td><td valign="top">List View toggle, search, and a checkbox per record</td></tr><tr><td valign="top">Confirm</td><td valign="top">OK</td><td valign="top">Add</td></tr></tbody></table>

<div><figure><img src="https://2472585788-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MFqFFf4143HS0_Wagnz%2Fuploads%2FEERUJispv4b3rcPsKmHU%2FList%20View%20New.gif?alt=media&amp;token=f1e3b880-bc0f-49be-a315-2a771bb47fad" alt=""><figcaption><p>List View (New)</p></figcaption></figure> <figure><img src="https://2472585788-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MFqFFf4143HS0_Wagnz%2Fuploads%2FOss2TVpVWBt79ytYsl4o%2FList%20View%20Old.gif?alt=media&amp;token=3525bcb5-c42e-450c-bdaa-edf2000b7a80" alt=""><figcaption><p>List View (Old)</p></figcaption></figure></div>

#### Change The Operator At Runtime

When Allow to change search field operator at Runtime is ticked in the [Query Task](https://docs.valorx.com/valorx-fusion/design-studio/tasks/query.md), the user can change each filter's operator on the screen.

* **New**: Click the operator beside the field name (for example, is any of) and pick another.
* **Old**: Click the operator icon to the right of the filter, pick from the Operators dialog, then click Select. The filter label shows the operator in brackets, for example *Account Name (Ends With)*.

The operators available depend on the field's data type.

<table><thead><tr><th width="200.111083984375" valign="top">Data type</th><th valign="top">Operators</th></tr></thead><tbody><tr><td valign="top">String</td><td valign="top">Contain, Does Not Contain, Starts With, Ends With, Equal, Not Equal, In, Not In, Like</td></tr><tr><td valign="top">Picklist, Id</td><td valign="top">Equal, Not Equal, In, Not In</td></tr><tr><td valign="top">Currency, Date &#x26; Time</td><td valign="top">Equal, Not Equal, Greater Than, Greater Than Equal, Less Than, Less Than Equal, In, Not In, Between</td></tr></tbody></table>

<figure><img src="https://2472585788-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MFqFFf4143HS0_Wagnz%2Fuploads%2Ferp7BhHuqQ8X8qbZRSbI%2FOperator.gif?alt=media&amp;token=29424dfe-7b37-42dd-ac9f-eba9f2365d28" alt=""><figcaption><p>Change the operator</p></figcaption></figure>

### Old and New Search & Select

Use the Try new Search & Select toggle in the header to switch between the new screen (toggle on) and the old screen (toggle off). The new screen opens the first time; after that, the screen opens in whichever version the user last chose. Both work the same way; the controls are named and placed differently.

<table data-search="false"><thead><tr><th valign="top">Action</th><th valign="top">New (toggle on)</th><th valign="top">Old (toggle off)</th></tr></thead><tbody><tr><td valign="top">Run the filters</td><td valign="top">Apply Filters</td><td valign="top">Search</td></tr><tr><td valign="top">Clear filters</td><td valign="top">Reset icon</td><td valign="top">Clear Filters</td></tr><tr><td valign="top">Save filters for reuse</td><td valign="top">New Preset, with a Preset Filters dropdown</td><td valign="top">Create custom filter</td></tr><tr><td valign="top">Search the list (Full)</td><td valign="top">Search box</td><td valign="top">Search across filters box</td></tr><tr><td valign="top">Record and selection count (Full)</td><td valign="top">Not shown</td><td valign="top">Records (N) and Selected (N), with an icon to clear the selection</td></tr><tr><td valign="top">Single Select footer</td><td valign="top">Showing N matching records in CRM</td><td valign="top">Showing 500 of N matching records</td></tr><tr><td valign="top">Pick In / Not In values</td><td valign="top">+ in the value field</td><td valign="top">List icon to the right of the filter</td></tr><tr><td valign="top">Change the operator</td><td valign="top">Click the operator beside the field name</td><td valign="top">Operator icon to the right of the filter</td></tr><tr><td valign="top">Collapse filters</td><td valign="top">X icon beside Filters</td><td valign="top">Chevron on the right</td></tr><tr><td valign="top">Match count (Compact)</td><td valign="top">Badge on Next</td><td valign="top">Not shown</td></tr><tr><td valign="top">Close without selecting</td><td valign="top">Cancel</td><td valign="top">Close</td></tr><tr><td valign="top">Expand the window</td><td valign="top">Not available</td><td valign="top">Maximize icon</td></tr></tbody></table>

<figure><img src="https://2472585788-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MFqFFf4143HS0_Wagnz%2Fuploads%2FNk2Z3oe0tUgups35Y0RL%2FNew%20and%20Old%20Toggle.gif?alt=media&amp;token=ead4b74b-d718-462c-ac33-bc3180775023" alt=""><figcaption><p>Old and New Search &#x26; Select</p></figcaption></figure>

### How Query Task Settings Shape The Screen

Everything on this screen is set up in the Query Task dialog at design time:

* Display fields become the list columns (Full only).
* Search fields become the filters. In Full, no search field means no filters panel.
* Record Selection Type sets Single or Multi Select.
* Allow to change search field operator at Runtime lets the user change operators.
* Preview opens this screen in Preview only mode.

For every setting, the operators per data type and the required fields, see [Query](https://docs.valorx.com/valorx-fusion/design-studio/tasks/query.md).
