Skip to main content

Search Input Widget

Provide a search field where users can search across requests or from a connected data source. The Search widget is deeply configurable both in terms of search behavior and in display options, enabling you to optimize the experience for users.

Title

Set the title of the widget. Include a descriptive title to help users understand the specific content of the widget.

interface_title_field.png

Wrap title text

Select whether to wrap title text that extends beyond the available display width. When not selected, long titles are truncated with an ellipsis.

interface_wrap_title_text.png

Description

Add a description for the widget. This description displays below the widget title.

interface_description.png

Show description as a tool tip

Select whether to display the widget description as a tool tip, hiding it by default.

When displayed as a tool tip, any rich text formatting in the description is removed.

interface_show_desc_as_tooltip.png

Icon

Change the widget icon and icon color—or remove the icon. Widgets always include a default icon.

Select the crossed-out icon option, interface_widget_no_icon.png, to remove the icon.

interface_icon.png

Width

Set the display width of the widget.

The width settings of neighboring widgets determine the resulting display on the interface. For example, two neighboring widgets set to 50% width display side by side. Similarly, if one widget is set to 1/3 and the following widget is set to 2/3, the widgets will display side by side.

We recommend experimenting with widget width settings and widget placement to optimize the interface display for the screen size you're designing for. That is, if you're designing an interface for a large screen (say, a request tracking interface), you can use small widget widths and include multiple widgets together. However, if designing for mobile, leaving widgets at 100% widths is generally best.

interface_width.png

Enable Display Conditions

Select whether to dynamically display the widget based on custom conditions. When enabled, a conditions group displays; when the specified conditions are met, the widget displays.

For example, you can set a condition to display an input-type widget only if a user enters a specific value, prompting the user to provide additional information.

For more information about configuration condition groups, see Conditions.

interface_enable_disp_conds.png

Condition Evaluation Method

Set how display conditions are evaluated:

  • Evaluate conditions on the first load - Evaluate conditions only when the page first loads. This option does not dynamically show or hide relevant widgets when a user makes a selection; refreshing the page is required.

  • Continuously evaluate (default) - Continuously evaluate conditions as the user views and interacts with the interface. Use this option to enable the interface to dynamically show or hide relevant widgets based on user input.

interface_conditon_eval_method.png

Show as a quick navigation tab

Select whether to display the widget as a quick navigation tab. When this option is set to Yes, this widget and all those below it will display on a single tab until the next widget that's configured to display as the quick navigation tab. Additionally, you can set the quick navigation menu label override and edit the label icon.

interface_show_in_quick_nav.png

Initial search state

Set the initial state of the Search widget, including placeholder text, a default value, and more.

Display mode

Select whether the Search widget displays as a conventional search bar with results displayed below or as a dropdown field:

  • Search (default) - The Search widget displays as a conventional search field with a dedicated results area that is always displayed below. This option is better for displaying many results which the user can easily browse, and for a shopping cart type experience where an editable quantity field is needed.

  • Dropdown - The Search widget displays as a dropdown field, providing a more condensed view of returned results. This option is best for a dropdown which needs to look up data from a large external dataset using an API, or when results should have images and additional data that can't be shown on a regular dropdown widget. When Display mode is set to Dropdown, some irrelevant configuration sections, including Initial state illustration and Search results - editable field, are hidden.

interface_input_search_display_mode.png

Search term placeholder text

Enter placeholder text (for example, "What do you want to search for?"). This text appears in the search field before users enter a value or select. Enter placeholder text manually or select the insert field button, insert_field.png, to dynamically add a value from a field.

interface_input_search_search_term_placeholder_text.png

Prefilled initial search value

Enter an initial search value, enabling the widget to display by default results for that search. For example, if the Search widget appears on an interface dedicated to requesting consulting services, you may enter "consulting services" in this field.

Note that you can also select the insert field button, insert_field.png, to dynamically add a value from a field, such as a user-provided field on an earlier interface.

interface_input_search_prefilled_init_search_value.png

Show initial search results when search term empty

Select whether to display search results when no value is entered in the search field. This option is helpful for Search widgets with limited potential results, enabling users to see available options before entering their search terms.

interface_input_search_show_results_when_search_empty.png

Hide search input

Select whether to hide the search input, preventing users from entering search terms. This option is helpful for Search widgets with limited results, where you prefer users to select from a short list of options. For example, you can enable this option, include a Prefilled initial search value, and enable Show initial search results when search term empty to display a specific subset of results for users to select from.

interface_input_search_hide_search_input.png

Initial state illustration

Configure the display of the Search widget's initial state when the interface loads. This display appears instead of pre-filled search results.

Illustration icon

Select an icon to display in the widget's initial state. For example, for a purchase request interface search, you might select a shopping cart icon.

The icon color (if you select a solid color) is set by your configured brand color in Board Settings.

interface_input_search_illustration_icon.png

Illustration title

Enter a title that displays below the illustration icon. Use this field to provide guidance for users on how to use the widget (for example, "Search for office supplies from available catalogs"). Select the insert field button, insert_field.png, to enter a dynamic value from a field.

interface_input_search_illustration_title.png

Illustration subtitle

Enter a subtitle that displays below the illustration title. Select the insert field button, insert_field.png, to enter a dynamic value from a field.

interface_input_search_illustration_subtitle.png

Search results data source

Configure the data source that search results are returned from.

Search method

Select the method to gather results for the search:

  • Data source collect - Gather search results from a connected data source whose entities Tonkean regularly collects. For example, this might include connected file storage repositories like Google Drive or SharePoint, or connected product catalogs.

  • Data source lookup action - Gather search results by performing a live API call to a connected data source. Use this option for data sources where Tonkean is not performing a regular collect—this might include data sources with very large quantities of records that are impractical to collect on a regular interval.

interface_input_search_search_method.png

Data Source Collect

Configure the search results source when gathering results from a connected data source whose entities Tonkean regularly collects.

Results source

Select the data source to gather search results from.

interface_input_search_results_source.png

Entity

Specify the entity to search for in the data source. For example, for a SharePoint data source, this may be Folders, Files, Lists, and so on.

interface_input_search_entity.png

Maximum # of records per search

Limit the number of records returned in the search from the data source.

interface_input_search_max_recs_per_search.png

Conditions

Define one or more conditions to filter the search results.

This option only displays when you select a value for Entity. If this field is left empty, search results are ordered by the strength of the match.

interface_input_search_conditions.png

Order by field

Select the field to sort results by. Fields in this dropdown are determined by the selected Entity.

This option only displays when you select a value for Entity. If this field is left empty, search results are ordered by the strength of the match.

We strongly recommend leaving this field empty, as ordering by the strength of the match is almost always the best user experience.

interface_input_search_order_by_field.png

Order

Specify whether to order search results in Ascending or Descending order.

This option only displays when you select a value for Entity. If this field is left empty, search results are ordered by the strength of the match.

interface_input_search_order.png

Order field type

Specify the type of field you're ordering results by. This value helps determine how to order the results:

  • Textual

  • Number

  • Date

This option only displays when you select a value for Entity. If this field is left empty, search results are ordered by the strength of the match.

interface_input_search_order_field_type.png

Data Source Lookup Action

Configure the search results source when gathering results by performing a data source lookup.

Results source

Select the data source to perform the lookup in.

interface_input_search_results_source.png

Lookup action

Select the data source lookup action for the selected data source in Results source.

Maximum # of records per search

Limit the number of records returned in the search from the data source.

interface_input_search_max_recs_per_search.png

Non-array response action

Specify how to handle responses from the data source that are not formatted as an array.

For lookup actions, Tonkean expects results from the data source to be formatted as an array with the relevant value at the configured ID path. Unexpected results from the data source can return a detailed error or be treated as if no results were found, depending on your selection below:

  • Treat as an error - If the data source returns a non-array response, display an error message. Use this option when first configuring the widget and testing responses from the data source.

  • Treat as no results found - If the data source returns a non-array response, display a No search results found message in the widget. This is an appropriate user experience for data sources that return a non-array response when no results are found.

interface_input_search_non_array_resp_action.png

Prefetched lookup response

Provide the field that stores the results of a prefetch search performed by the Prefetch Search Widget module action; select the insert field button, insert_field.png, to provide this value. This action enables you to leverage information (either from integrated data sources or provided by a user) to perform a pre-search lookup, returning relevant information before the user enters search terms.

This option is useful for prepopulating the Search widget with results related to the user's need. For example, you might collect a user-provided purchase category during the intake process and use that field to pre-fetch relevant results from a purchase catalog.

The value provided in Prefetched lookup response must be the Result Field in the Prefetch Search Widget Results action.

interface_input_search_prefetched_lookup_response.png

Selecting search results

Configure options for how users select search results.

Selection method

Specify whether users can only select a Single result or have the ability to Multi-select results.

interface_input_search_selection_method.png

Storing selected search results

Specify how to store the selected search result or results:

  • Store as a list in field - Store the selected search result in a field.

  • Create inner items - Create an inner item for each selected search result.

interface_input_search_storing_select_search_results.png

Field for storing selected results (IDs)

Select the field to store the selected search results. This field is required if Storing selected search results is set to Store as list in field.

Only fields configured to store multiple values can store selected search results.

interface_input_search_field_for_storing_selected_results.png

Search results - editable field

Configure options for editable fields in search results. Some common examples include fields where users can specify a quantity of an item when selecting from a catalog.

Field to edit

Select the field users can edit.

interface_input_search_field_to_edit.png

Label

Provide a display label for the editable field; this option is helpful for providing a user-friendly display name for a field that may have a more technical or potentially confusing name in the module.

interface_input_search_label.png

Default value

Enter a default value for the editable field. For example, if configuring an editable Quantity field, you may set the Default value to "1".

interface_input_search_default_value.png

Search results - image display

Configure how search results visually display in the widget, as well as how images in results display.

Cards density

Specify the spacing for the search result cards:

  • Spaced (default) - Result cards display with larger images and more space to display information (such as description fields). Use this option to display more information for each result.

  • Compact - Result cards display with smaller images and generally less detailed information, allowing more results to display in the same space.

  • Condensed - Results cards display in the smallest form factor to display the maximum number of results. This option emulates a dropdown field and removes options for adding dynamic fields.

    When you set Display mode to Dropdown, Cards density defaults to Condensed.

We recommend experimenting with different densities to see what looks best for your most common search results.

interface_input_search_cards_density.png

Placeholder for images

Specify a placeholder for search results where no image exists:

  • None - No placeholder displays.

  • Initials - A placeholder displays with initial (provided from alt-image text).

  • Image - A generic placeholder image displays.

interface_input_search_placeholder_for_images.png

Image input method

Select how you want to source the image. Depending on the option you select, different configuration fields display:

  • Set image manually - Manually upload the image and provide image details.

  • From data source action - Source the image from a data source action. This option is designed to allow an interface to display an image from a data source where the user viewing that image may not have access or permissions to view that image (for example, if the user doesn't have a login to the source system).

    This option uses a specialized data source action, Stream Image, that's currently supported natively only for Coupa data sources.

interface_input_search_image_input_method.png

Set Image Manually

Image Details

Set the image details and upload the image that displays in the widget by either uploading an image or providing an image URL.

Image Alt Text

Provide the image alt text, which is shown when a user hovers over the image; alt text is also used by screen readers and when the image cannot be displayed.

interface_image_image_alt_text.png
Upload Image

Drag the image into the provided space or select Browse Files to select the image from your local machine.

When you upload an image, Tonkean automatically provides a URL displayed in the Image Url field.

interface_image_upload_image.png
Image URL

Insert an image URL to source an image from the web. Select the insert field button, insert_field.png, to use a URL from a field value.

The maximum file size is 5MB, and the supported file types are JPG, JPEG, and PNG.

interface_image_image_url.png

Source Image From Data Source Action

Data Source

Select the data source to retrieve the image from.

Currently, this option is configured for use with Coupa data sources. Other data sources, where they support this action, may require custom action configuration.

interface_image_image_data_source.png

Entity

Optionally, specify the entity to source the image from. This option is designed for situations when the same stream image data source action is configured for multiple entities.

interface_image_image_data_source_entity.png

Data Source Action

Select the data source action to source the image from. The action must be of the type "stream image" and fetch based on the image URL provided.

interface_image_image_data_source_action.png

Image URL

Select the insert field button, insert_field.png, to use a dynamic URL field.

interface_image_data_src_image_url.png

To stream images from a Coupa data source, follow the steps below:

  1. Select the insert field button, insert_field.png. The available fields display.

  2. Select the Original Entity Fields button. The Original Entity Fields dropdown displays.

    interface_image_image_url_entity_fields.png
  3. Use the provided search field or scroll down to find and select the item-image-url field. This field is automatically created when connecting a Coupa data source.

    interface_image_image_url_coupa_field.png

Image external ID

Optionally, include an external ID value. This value may be required for streaming images from some data sources.

This field is not required for streaming images from Coupa data sources.

interface_image_data_src_image_ext_idpng.png

Search results - Result cards layout & fields

Configure the results card layout and field display. See below for an example of how each of these fields map to the display. We also recommend experimenting with different layouts to find the best display for your expected search results.

interface_input_search_card_layout_example.png

Card title

Enter a title value for the card. Select the insert field button, insert_field.png, to insert a field from a matched entity, like a purchase catalog.

Card description

Enter a description value for the search result. Select the insert field button, insert_field.png, to insert a field from a matched entity.

Card tag text

Enter result card tag text. This option is helpful for highlighting key result characteristics, like in-catalog items or those that have been previously ordered, using dynamic fields.

Secondary property

Enter a secondary property field to provide additional information about the search result.

Initial value mapping

This section enables you to define initial field values for each inner item that's created when storing search results as inner items. For each value, map an inner item manual field to a formula field that's evaluated and populated when the inner item is created.

This section only displays when, in the Selecting search results section, Storing selected search results is set to Create inner items.

Dynamic fields

Configure additional information to display on result cards.

Different Cards density values impact how dynamic fields display. Experiment with different density values to find the best layout for your expected search results.

Select + Add Property to create Label and Value fields you can provide values for. Select the insert field button, insert_field.png, to insert a dynamic value from a field.

interface_input_search_dynamic_fields.png

See the example below for how Label and Value fields display on a result card (with Cards density set to Spaced).

interface_input_search_dynamic_field_example.png