logo

NJP

Triggering UI Interactions From Page or Component Events

ServiceNow Dev Program · Aug 21, 2026 · video

Ever wished you could build a dialog or modal once and trigger it from anywhere across your workspace without cluttering your UI Builder pages? In this walkthrough, we dive into the power of fully encapsulated UI Interactions in ServiceNow. We build a clean, blank UI Builder page from scratch, wire up an iconic button component, and bind it directly to an existing UI Interaction using event handlers. Key Highlights: • Decoupled Architecture: Learn why encapsulating UI Interactions keeps your page tree clean—no extra dialog components cluttering the canvas. • Event Binding in UI Builder: Filter event handlers specifically by UI Interactions and wire them up to standard component events. • Dynamic Inputs & Reusability: Pass table parameters, target records, and tooltips directly into the interaction without modifying the underlying component code. • Global Updates: Make a change to your UI Interaction once, and see the updates reflected everywhere it is called across your workspace. Chapters 0:00 - UI Interactions Overview & Use Cases 0:22 - Setting Up a Blank Page in UI Builder 0:44 - Adding and Styling the Button Component 1:00 - Filtering and Adding UI Interaction Event Handlers 1:23 - Configuring Interaction Inputs & Record Options 1:40 - Encapsulation Benefits & Page Cleanliness 2:05 - Live Preview & Testing the Interaction

View original source

https://www.youtube.com/watch?v=F1tO17xgTPs