Build your page by adding two container components.
Rename your container components in the content tree.
Add a Heading component and a Button component to the first container. Add a data visualization component to the second container. For more information
about components, see Customize UI Builder pages using components.
Enter the name of your new page. The name can be anything you want. In this example, you can type My tutorial page.
In the Path field, a path is automatically entered based on your page name. In this example, the Path is my-tutorial-page. The path is the URL of the page. You can
change this path to anything you want, but the path must be unique. The path has to be lowercase and contain no spaces. The URL preview shows what the path of your page will be.
Select a URL page type in the Type drop-down list. URL page types help you categorize and find important pages in the experience view.
Select Continue.
(Optional) Add parameters to your page URL.
Select Looks good.
Enter the name of your page variant. The name can be anything you want. In this example, you can type My first page variant.
Add an audience for the page variant by selecting + Add an audience. In this example, select Admin.
Select Continue.
On the next screen, select Build responsive.
Select Create.
After your page is created, the page editor screen appears. You can change advanced settings such as the URL settings and Variant settings. For this tutorial, you can
skip these advanced options. For more information on changing advanced settings, see Create a UI Builder page: Advanced settings.
Congratulations! You created your tutorial page! The page is empty of content. You add components to the page to build functionality to it. Components are the building blocks of a page. UI Builder comes with many components ready for you to add to your page. Components can be as simple as a Heading, or as complex as a List.
Change the layout of the page to a two-column layout.
Select the Body level of the Content tree to highlight the page.
Select + Add content in the content tree.
Select the Two columns layout.
Select Add.
The two column layout appears.
Add a Heading component, and a Button component to the left column.
To do this task
Do the following
Add a heading component to your left-column container
You can add components to the page in different ways. For more information on the ways you can add components to your page, see Table 1.
Select the + button in the middle of the left column.
Type Heading in the search field.
Select the Heading component to add it to your container. A heading component is a way to add text or a title to your page.
Select Add.
Select the component name in the configuration panel to see the Component label and Component ID. You can change these to anything you want, as long as they’re
unique.
Select Apply.
Configure your Heading component. Component authors configure components to expose the appropriate properties required to set up their components.
Set the style to Header-primary. The Style changes the class of the heading text, like font, weight, and color. For example, if you select Header-secondary, the
text is smaller. Different headings sizes are useful if you have two headings and want the second heading smaller that the primary heading.
Enter My Tutorial as the heading text in the Label field.
Leave the Level as 1.
Add and configure a button component to your left-column container
Add a Button component to your page. Configure the button by changing the text and the way that it looks. Then change what happens when you click the button by adding an event handler for the
button. The event handler adds an action to the button to link to the ServiceNow® home page. So when you click the button, the ServiceNow® home page opens in a new tab of your browser. For more information about configuring components, see Components.
Select the + on the bottom edge of the heading component that we added in the previous section.
Type Button in the search field.
Select the Button component in the list.
For more information on adding components to your page, see Table 1.
Select the component name in the configuration panel to see the Component label and Component ID. You can change these to anything you want, as long as they’re
unique.
Configure the button component as follows.
Enter Home Page in the Label field to change the name of your button.
Change the Size to Large.
Enter home in the Icon search field.
Select Home Outline.
Add an event handler to configure what action applies to the button.
Select the Events tab in the configuration panel.
Under Button clicked, select + Add a new event handler.
Under Inherited event handlers, select Link to destination.
Click Select destination.
In the Select destination screen, select External URL.
Type your URL. For this tutorial, type https://www.servicenow.com Select OK.
Select Save. It is always a good idea to save your page often as you work.
Select Preview.
Test the button you created in the previous steps.
You added and configured the Heading and Button component for your page.
Add a Data visualization component to the container.
A data visualization component contains data that you display in a visual manner. Configure the data visualization component parameters. Then, add a data resource to it.
To do this task
Do the following
Add and configure a data visualization component to your right-column container
You can add components to the page in different ways. For more information on the ways you can add components to your page, see Table 1.
Select the + button in the middle of the right column.
In the Search field, start typing Data visualization until you see the Data visualization component, then select the component to add it to
your page.
Select the component name in the configuration panel to see the Component label and Component ID. You can change these to anything you want, as long as they’re
unique.
Add a data resource to your data visualization component to bring in customer account data.
Select the data visualization component, then select the Configure tab.
Select Add data source.
Type Task [task] in the search field and look for a task that is available on your UI Builder instance.
Select Add this source.
Select Data visualization type drop-down and select Dial. You can choose a variety of visualization types to best suit your data.
Select Header and border in the configuration panel.
Enter My Tasks in the Chart title field.
You’ve added a Data visualization component to the right column and configured it. You also added a data resource to bring in customer account data.
Save the new page one last time.
To do this task
Do the following
Save your page
In the far right corner of UI Builder, select Save.
Now that you saved your page, you can access it in your experience at any time.
Now preview your page to see what it looks like in a browser.
To do this task
Do the following
Preview your page
Select Preview in the UI Builder header.
See the heading in the left column of your page.
Select the Home Page button. The ServiceNow® home page opens in another browser tab. Close the browser tab to go back to your preview page.
See the customer account data visualization in the right column of your page.Figure 1. Preview your tutorial page
Congratulations! You completed the UI Builder tutorial.
Result
Created a page in UI Builder.
Changed the layout of your page to have two columns.
Added a Heading component as a title to your left column.
Changed the text of the heading.
Changed the label of the heading.
Added a button component below your heading component.
Configured your button.
Added an event handler for your button.
Added an event handler to set up a link to a web page. When you click the button, it opens the web page.