Condition builder component setup

task brazil Updated Sep 10, 2026 4 min read condition-builder-component-uib-setup.md
Raw file servicenow.com

Condition builder enables users to create a condition statement of contextually generated fields that can be used to create filters, administer surveys, and control access to records.

Before you begin

This task assumes you have placed the component on the page and are ready to configure the properties and events. For instructions on accessing and using features in UI Builder, see Customize UI Builder pages using components.

Note: This document describes the latest component functionality. Go to the store to make sure you have the latest version of the component.

Role required: admin or ui_builder_admin

Procedure

  1. Define a label for your Condition builder that differentiates it from other components in the content tree.

    A label makes finding the component easier in a large list of components. For instructions on using the content tree, see Manage UI pages and page variants.

    [Omitted image "condition-builder-content-tree.png"] Alt text: Shows the Condition builder component in the content tree

  2. Select the Condition builder component, using one of these methods:

    • Click anywhere within the component.
    • Select the Condition builder label you created for your component in the content tree. The property fields appear in the Config tab in the setup panel on the right.

Parent Topic:UIB Setup Information

Condition builder component properties

Configure the Condition builder properties to define what features are available to your end users.

To configure the properties, enter either static or dynamic input. Enter dynamic input by selecting the input type.

Label [property]

Description

Table name[tableName]

Name of the table the condition builder is using.

Encoded query[encodedQuery]

Filter string to use to populate the condition builder.

Label [property]

Descrtiption

Hide action bar[hideActionBar]

Hide all actions in the condition builder header, including "Use existing filter", "Save filter", "Record count", and "Undo/Redo."Default: false

Hide option to use existing filter[hideLoadFilter]

Prevent users from accessing saved filters in the condition builder.

Hide option to save filter[hideSaveFilter]

Hide the option to save a filter. Saved filters appear in the use existing filter list.Default: false

Hide results count[hideRecordCount]

Show or hide the record count for results that match the search criteria.Default: false

Label [property]

Description

Hide filter overview[hideFilterOverview]

Show or hide the filter overview that summarizes the condition builder.Default: false

Hide editor description[hideEditorDescription]

Shows or hides the editor description. Hiding the description provides more vertical space in the condition builder.Default: false

Hide dot walking[hideDotWalking]

Show or hide dot-walking capabilities to prevent users from being able to filter on related or extended tables.Default: false

Hide new condition set option[hideSets]

Show or hide the option to enable users to add comparative statements in the way of a new condition set.

Hide the related list conditions section[hideRelatedListQueryCondition]

Prevent users from including a relationship with another table in the filter.Default: false

Hide "Sort by" section[hideSortBy]

Show or hide the "Sort by" feature in condition builder.Default: false

Hide "Sort by" description[hideSortByDescription]

Show or hide the description that appears after the "Sort by" option.

Label [property]

Description

Field inclusion list[fieldInclusionList]

An array of fields that appear when using the condition builder.

Field exclusion list[fieldExclusionList]

An array of fields that will not be included when using the condition builder. The setting for this field takes precedence over the values contained in the "Field inclusion list."

Hide error information[hideErrors]

Shows or hides errors for invalid field, operator, or value inputs within the condition builder.Default: false

## Condition builder component events

Select event handlers to configure the actions (events) provided with the Condition builder component.

The Events tab shows the events used by the Condition builder component. To view the available events, select + Add event mapping. Select the event in the list to add one or more event handlers.

Event handlers

Event handlers work with data resources to link the Condition builder actions to the data you want to display to your users. Select the event in the list to add one or more event handlers.

For instructions on adding event handlers to an event, see Configure an event handler.

Event descriptions

Event

Description

Query updated

The user changes any of the condition blocks in the encoded query Payload:

  • value: Value of the encoded query
  • partial: Returns true if the query has any partial queries
  • queryModel: Specific query model
Search documentation
Search document titles and file paths on the brazil branch