Service Portal widget development
Build reusable portal components with HTML, client and server scripts.
The Service Portal is built from widgets, self-contained components you drop onto a page. Each widget has three cooperating parts, so learning the data flow between them is the whole skill.
- The three parts
- Server script populates data
- Modern note
- Try it Yourself
The Service Portal is built from widgets, self-contained components you drop onto a page. Each widget has three cooperating parts, so learning the data flow between them is the whole skill.
The three parts
Server script populates data
c.server.update() (or c.server.get({...})) to re-run the server script and refresh c.data. Pass actions through input; never try to run GlideRecord from the client script.Modern note
Service Portal widgets use AngularJS. New greenfield experiences increasingly use UI Builder and Now Experience components, but widgets remain the backbone of most production portals today.
Practice challenge
3 questionsQ1A Service Portal widget has how many script parts?
Three: HTML, client, server
HTML template, client script and server script.
Q2The client refreshes server data by calling...
c.server.update()
c.server.update()/get() re-runs the server script.
Q3Service Portal widgets are built with...
AngularJS
The Service Portal framework uses AngularJS.
Frequently asked questions
What does the term Service Portal widget development refer to in ServiceNow?
What is the practical takeaway on Service Portal widget development?
Want this taught live, with job support?
ServiceNow Training is delivered live by working practitioners, with certification prep and placement support.
See ServiceNow Training โ