How to add related list to the form component in UI builder

mynedisanjana
Tera Contributor

I have added a form component to the Portal page in UI builder but the related lists are not added to the form that we are having in the back end. How to add the related list to the form in the ui builder so that it reflects the same as the back end

1 REPLY 1

recalp
Kilo Contributor

In ServiceNow, related lists are not automatically added to the form in UI Builder. You need to manually add them. Here are the steps to add a related list to a form in UI Builder:

1. Open the UI Builder and navigate to the page where you want to add the related list.

2. Click on the "Add Components" button on the top right corner of the UI Builder.

3. In the components list, search for "Related List" and drag it to the desired location on your form.

4. Once you've added the "Related List" component, you need to configure it. Click on the component to open the configuration panel on the right side.

5. In the configuration panel, you need to specify the "Table" and "Fields" properties. The "Table" property should be the table that contains the related records. The "Fields" property should be the fields from the related table that you want to display in the related list.

6. After configuring the "Related List" component, click on the "Save" button to save your changes.

7. Preview your page to verify that the related list is displayed correctly. Please note that the related list component in UI Builder is not as feature-rich as the related list in the platform UI. For example, it does not support related list controls, related list v2, or list edit. If you need these features, you might need to create a custom component.