UI interactions

  • Release version: Australia
  • Updated March 12, 2026
  • 3 minutes to read
  • Summarize
    Summarized using AI
    This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.

    Summary of UI interactions

    UI interactions in ServiceNow’s UI Builder enable you to create reusable flows that combine UI elements, logic, and scripts into single units triggered by component events or declarative actions. This approach reduces duplication, improves consistency across pages, and simplifies maintenance by applying changes globally wherever the interaction is used. UI interactions can be triggered from buttons, component events, or custom UI behavior and work across various contexts such as forms, lists, or generic components. For complex, record-based sequential processes, ServiceNow recommends considering Playbook instead.

    Show full answer Show less

    Key Features

    • Reusable Flows: Define flows once and reuse them across multiple pages, avoiding repetitive wiring.
    • Triggering Options: Run interactions from declarative actions (buttons on forms/lists) or UI Builder page events.
    • Interaction Types: Choose from Generic, Form-specific, or List-specific interaction types to match the context and available toolbox steps.
    • UI Interaction Toolbox: Access building blocks including modals, dialogs, dynamic forms, custom components, logic steps (conditions, branching), form/list actions, and client/server scripts tailored to the interaction type.
    • Workflow Structure: Interactions consist of inputs (configurable data), triggers, start nodes, sequential or branched steps, and an end node, enabling complex UI and logic flows.
    • Integration with Declarative Actions: Declarative actions define where buttons appear and can trigger UI interactions to define the underlying behavior.
    • Management: Create, edit, duplicate, trigger, and delete interactions easily from UI Builder or the platform interface, with some foundational properties locked post-creation to prevent errors.
    • Demo Data: Use demo UI interactions as safe examples to learn, experiment, and accelerate development of your own interactions.

    Practical Applications

    • Trigger confirmation dialogs on button clicks.
    • Show alerts after record save events.
    • Display forms inside modals when validations fail.
    • Chain multiple steps such as data updates followed by success messages.

    Accessing UI Interactions

    From UI Builder home page, access all interactions via the UI interactions tab or create new ones through Create > UI interactions. From the platform, navigate to Now Experience Framework > UI interactions for listing or creating interactions. Creation opens the UI Builder modal to define the interaction’s name, type, and description.

    Why This Matters

    UI interactions empower ServiceNow customers to build consistent, maintainable, and event-driven user experiences without repetitive configuration. By centralizing UI and logic flows, you save development time and reduce errors while providing flexible, scalable UI behavior across your ServiceNow applications.

    Trigger UI interactions directly from events in UI Builder, allowing you to link event-driven behavior to reusable interaction logic.

    UI interactions are reusable flows that combine UI elements and logic into a single unit you can trigger from component events in UI Builder. They help you avoid repeating the same wiring across multiple pages and make your designs easier to maintain.

    Why use UI interactions

    • Reduced duplication: Instead of creating separate actions for every component, you define the flow once and reuse it.
    • Improve consistency: Interactions apply the same behavior across multiple pages or experiences.
    • Simplify maintenance: Changes to an interaction automatically apply wherever it’s used.
    Note:
    For record-based, sequential UI with a long-running process, consider using Playbook.

    Practical uses for UI interactions

    • Trigger a confirmation dialog when a user selects a button
    • Show an alert message after a record is saved
    • Show a form view inside a modal when validation fails
    • Chain multiple steps together, such as updating data and displaying a success message

    Accessing UI interactions

    • To view list of all existing UI interactions from within UI Builder: select the UI interactions tab from the UI Builder home page.
    • To create UI interactions from within UI Builder: select Create > UI interactions from the UI Builder home page.
    • To view a list of all existing UI interactions from the platform, navigate to All > Now Experience Framework > UI interactions > All. The UI Builder home page opens with the UI interactions list displayed.
    • To create UI interactions from the platform, navigate to All > Now Experience Framework > UI interactions > Create new. The creation modal opens in UI Builder where you define the interaction name, type, and description.

    UI interaction workflow

    A UI interaction defines a reusable flow of user and system actions. At a high level, every interaction works this way:
    1. Inputs: a configurable piece of data that a UI interaction needs to run. Supported types include string, true/false, choice, reference, and JSON. Inputs can be defined upfront or promoted from a step property.
    2. Trigger: a component, declarative action, or event starts the interaction and passes inputs.
    3. Start: one or more start nodes determine where execution begins.
    4. Steps: the interaction runs its steps in sequence, optionally branching with events or parallel And paths.
    5. End: execution reaches an End node, completing the flow.
    Figure 1. UI interaction workflow example
    UI interaction workflow.

    How UI interactions differ from declarative actions

    Declarative actions determine where and when an action appears, most commonly on a form or list. UI interactions encapsulate what happens and can be triggered by any page event or declarative action. Key differences include:
    • Declarative actions place buttons on lists and forms without requiring modifications of the page.
    • UI interactions define the end‑to‑end behavior of UI, logic, and script when triggered.
    • Declarative actions can trigger UI interactions.
    • Declarative actions can be implemented as UI interactions instead of UXF client actions, since they work without page ownership or modification, even when triggering UI like modals.

    Triggers for UI interactions

    You can run a UI interaction from several entry points, depending on the use case:
    • Declarative action: ideal when you need a button on a form or list without page customization.
    • UI Builder page events: trigger interactions from buttons, component events, or custom UI behavior within a page.

    UI interaction types

    When you create an interaction, you choose a type that determines the context it works with:
    • Generic: works with any component
    • Form: designed for form-specific behaviors such as save, validate, and scripting
    • List: tailored for list-based actions such as list refresh and scripting

    UI interaction toolbox

    The toolbox provides all building blocks available inside the UI interaction editor, including:
    • UI elements like modals, modeless dialogs, and dynamic forms
    • Custom components with Component Builder
    • Logic steps such as conditions, if/else branches, and navigation
    • Form or list actions, when available for that interaction type
    • Client and server script steps
    • Data-binding inputs and configurable properties
    Note:
    Toolbox components depend on the interaction type such as form, list, or generic.
    Figure 2. UI interactions toolbox example
    UI interactions toolbox.