Add and configure components
Learn how to add components to your page in UI Builder. A page is built by adding components.
Before you begin
Role required: ui_builder_admin
About this task
Components are the building blocks used to create custom pages in UI Builder. Learn how to add a component to a page. After you add a component to a page, you must configure the component. For more information about configuring components, see Component documentation on the ServiceNow Developer Site.
Procedure
Navigate to All > Now Experience Framework > UI Builder.
Open an experience to work in or create an experience by selecting Create > Experience.
See Configure how users interact with your applications in UI Builder for more information on creating experiences.
Open or create a page.
If you open an existing page, make sure you are in the same scope as the original page. If not, change the scope before you start editing the page. Application scoping protects applications by identifying and restricting access to application files and data. Administrators set the scope to specify what parts of an application are accessible to other applications. Application scope protects data and application files. See Learn about security and roles for more information about application scope.
Select an existing container or create a column layout.
See Organize components in UI Builder pages for more information.
Add components to your page.
UI Builder comes with a library of components to choose from. You add components as the building blocks of your page. For example, you can add a heading, data visualizations, and so on. The following table shows you the different ways you can add a component to a page.
| To add a component | Do the following | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Directly from your page | From your page, select + and choose a component from the toolbox. You can search for a component or scroll through the list. Image omitted: component-add-from-stage.png - Choose a component from the toolbox.Add content icon selected on the stage showing the toolbox window with Components tab selected.</td></tr><tr><td id="d270798e225"><strong>Floating menu above page</strong></td><td>Select the floating menu above your component. - Select <strong>Add before</strong> or <strong>Add after</strong>. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Content tree | You can add a component from the content tree in the following two ways.- Select +Add content beneath a container in the content tree. Then choose a component from the toolbox. - Move your mouse device over a container in the content tree, select the Menu icon, and select Add component. Then choose a component from the toolbox. Image omitted: component-add-from-content-tree.png Black arrow pointing to + add content option in content tree next to the toolbox window with Components tab selected.</td></tr></tbody>
Image omitted: json-editor.png UI Builder low-code JSON editor. Image omitted: container-more-button.png Arrow pointing to the menu icon with the floating menu expanded. Image omitted: container-style-floating-panel.png Layout options displayed in a floating panel.
Image omitted: add-another-component.png Plus signs at the top and bottom of a component to add additional components.
What to do nextYou have added and configured components on your page. See Dynamically expose data in UI Builder pages (advanced feature) for more information. A data resource in UI Builder is the data that a page fetches to display content in components. Components use data resources as a way to reuse data and configurations across different experiences, and make the components dynamic on a page. Parent Topic:Configure components and repeaters (advanced feature) Supported functions in the UI Builder component formula editorLearn about the various functions supported in the UI Builder component formula editor. The following table lists the functions you can use in the UI Builder component formula editor. For more information about the component formula editor, see Customize UI Builder pages using components.
|