Configurable Portal widgets are the prebuilt building blocks of a customer service portal home page. You place each one on a page in the Service Portal Designer and shape its behaviour, content and look through instance options. This guide covers the prerequisites, the page build and the settings behind the Data List, Case Cards, Knowledge and FAQ widgets. For the general concept behind them, see ServiceNow Service Portal Widget Explained.
Before you start
The steps below reflect the Australia release. Check three things before placing any widget.
- Activate the UI Components for Customer Portals plugin, identified as sn_ciwf_ui_cmpnt. Activation needs the admin role, and the install also brings in related plugins that are not already present.
- If domain separation and delegated admin are enabled, the administrative user must sit in the global domain. Otherwise the install is refused.
- Building pages and placing widgets needs the sp_admin role.
For the wider portal planning, see the customer self-service portal guide. For how access is planned across the whole portal, see Customer Self-Service Portal: Security and Access Design.
Creating the page and its layout
In Service Portal Configuration, open Designer and choose Add a new Page. Enter a page title and a page ID that contains no spaces or special characters other than an underscore, then submit.
Open the page, select the Widgets tab and drag the Container layout onto the edit area, then add columns with the plus button.
To add a widget, type its name in the Filter Widget box, drag it into a column, then select its pencil icon to open the instance form.
What each widget displays
| Widget | What it displays |
|---|---|
| Polaris Header | Logo, search and profile on level one, menu items on level two |
| Portal Mega Menu | Hierarchical topic menu in the header, setting how level-two items look |
| Portal Browse Taxonomy | Taxonomy topics together with their related articles and catalog items |
| Portal Banner | A heading, description, optional buttons and search bar at the top of the page |
| Portal Banner Carousel | Several banners shown in a carousel |
| Portal Quick Links | Links to articles, catalog items, custom pages or external URLs |
| Portal Knowledge Quick Links | Knowledge articles chosen manually or by criteria |
| Portal Catalog Quick Links | Catalog items for important request items, selected by criteria |
| Portal Case Cards | Case records matched by filter criteria, shown as cards |
| Portal Data List | Cases, appointments, work orders or other records from any table, in list or card format |
| Portal FAQ | Frequently asked articles from a knowledge table, grouped by category or related product |
| Portal Polaris Footer | Company information and logo, site links, external links and social links |
| Portal Object | Key information from one record, with related actions |
| Portal Taxonomy Topic | Topic cards linking to the articles and catalog items of a Browse Taxonomy topic |
For how the menu and navigation around these widgets can be planned, see ServiceNow Service Portal Navigation: Design for the Next Step.
Configuring the Portal Data List widget
The Data List’s Data field takes a JSON array, and each object in it becomes one category in the navigation pane.
Category parameters
- ID: a unique identifier that a categories condition script uses to show or hide the category.
- label: the name shown in the navigation pane. A category without a label does not appear.
- table: the source table. It defaults to the Case table, sn_customerservice_case.
- list_view: the named view that sets the list columns. Without a value, all columns show.
- card_view_primary_column, card_view_secondary_column and card_view_additional_columns: the card’s first line, optional second line, and up to four more fields separated by vertical bars.
- query: filters the records. Without a value, all records show.
- glyph or image_name: a Font Awesome icon name (version 4.7) or an image from the Images table, which takes precedence when both are set.
Tabs, filters and role views
Pre-defined filters create tabs inside a category, such as Open and Closed. Run-time filters place a filter icon on the category, and each listed column becomes a dropdown with a single or multi selection type. A range can be given a label and a query, so a reader can pick “last 30 days” without typing a query. A column with no values or no selection type produces no filter icon.
Role-based views map roles to views, and when a user holds several matching roles, the first matching view is used. The guest view serves visitors who are not signed in, and it needs public access set on three places: the Data List widget, the page containing it, and the page content instance.
A worked example
One example uses three categories: All Cases, with Open and Closed subcategories and run-time filters on product, contact, account, priority, state and updated-date ranges; Actions Needed, for cases in the states chosen for that category; and Work Orders, on the work order table.
Choosing run-time filters
Bounded-value fields such as priority, state or category tend to work well as filters, as do reference fields readers filter by, such as account, assignment group or contact, and date fields configured with ranges.
Free-text fields such as short description or work notes tend to give long dropdowns that are hard to use, and high-cardinality fields such as number, sys_id or raw timestamps usually do the same.
On the instance form, Dynamic data list reads the table, filter, sort order, view and target view page from the page URL instead of the JSON. Desktop shows 20 records per page by default and mobile shows 8. A Data List Condition Script controls category visibility, view changes and filtering.
Case, knowledge and FAQ widget settings
| Widget | Setting | Default and effect |
|---|---|---|
| Case Cards | Case Table | The Cases table, sn_customerservice_case. The complaint case table, sn_complaint_case, extends it. |
| Case Cards | Query | Shows cases awaiting information or resolved. An empty query shows all cases. |
| Case Cards | Max Cases to Display | 10. View All appears when matching cases exceed this number and a View All page is selected. |
| Knowledge Quick Links | Display Articles | Criteria based, Manually select or Dynamic query. Criteria based is the default. |
| Knowledge Quick Links | Max Quicklinks to Display | 10 |
| FAQ | Question and Answer fields | Records with an empty question or an empty answer are skipped. |
| FAQ | FAQ per page | 5 |
| FAQ | Show Read More | Exceed preview by default, or Always. |
Criteria based Knowledge Quick Links draw on the Most Viewed, Most Useful and Featured criteria, which the knowledge table’s View field determines. Cards can show the author, view count, last-updated date and rating, and the layout can switch between a carousel and a grid.
The FAQ widget can group by Knowledge Category, the default, or by Related products. It skips records without a question or an answer, so a missing FAQ usually points to an incomplete knowledge record. For a structured check before go-live, see the testing and acceptance checklist.
Banner, footer and object settings
The banner heading defaults to Home Page Banner. It accepts three placeholders: the signed-in user’s name, their salutation from the User table, and a greeting for the time of day in the user’s region. Buttons take an absolute URL that includes the protocol, or a relative path after the domain. A Widget Placeholder can embed one extra widget from the Widgets table. The search bar is switched on with Show Search bar, and its placeholder is set in Search Placeholder Text.
The Polaris Footer needs the Portal Next Experience theme application to be active. In the customer support portal record, the Quick start config field holds a JSON footer section. That section takes organisation lines, copyright text, a logo name from the Images table, and the sys_ids of three menus: sitemap, footer links and social links. Then point the theme’s Footer field at Portal Footer.
The Portal Object widget defaults to the asset table, and its Record field takes a sys_id. In dynamic portal object mode, the table, sys_id and view come from the page URL, and three options remain configurable: Actions, Enable Service Definitions and Enable Editing Record. With Enable Editing Record on, users with edit permission see an Edit details action. For a parallel set of instance option settings on the ITSM Service Portal, see Configuring Service Portal Widgets with Instance Options.
Frequently asked questions
Who can build these pages?
Activating the plugin needs the admin role. Creating pages, placing widgets and editing instance options need sp_admin.
Why does a category not appear in my Data List?
A category without a label is not shown in the navigation pane. Check the label first, then check any condition script that uses the category ID to hide it. For a wider route through other portal faults, see Troubleshooting ServiceNow Customer Self-Service Portal: A Practical Guide.
Why is there no filter icon on a category?
The filter icon appears when a run-time filter has a column with values and a selection type.
Why can guest visitors not see Data List records?
The guest view needs public access on three things: the Data List widget, the page that contains it, and the page content instance. If any one of them is not public, guest visitors will not see the records.