The Hello World widgets are included with Service Portal as examples of how to use and create widgets. You can use this base system widget as-is in your portal or clone it to suit your own business needs.

All three Hello World widgets display the same way. The real difference between them is in their underlying code base. Each version of the widget uses a different method of using the server and client script.

To view the Hello World widgets, navigate to Service Portal > Service Portal Configuration then click Widget Editor. In the Widget Editor, click Check out the Hello World Example.

Figure 1. Hello World 1
Hello World 1 widget, showing the HTML and client script in the IDE

Hello world 1 displays how the HTML template and the client script communicate. For more information on using the client script in Service Portal, see Developing custom widgets.

Use the widget list to switch to Hello World 2 or 3.

Figure 2. Hello World 2
Hello World 2 widget, showing the HTML, client, and server scripts in the IDE

Hello World 2 includes an example of how the server script can be used as well.

Figure 3. Hello World 3
Hello World 3 widget, showing the HTML, client, server, and link function scripts in the IDE

For more information on Service Portal APIs, see the GlideSPSriptable API.