Let’s say we want to do something simple such as displaying an alert “Hello World” when opening a hosted control.
On loading our hosted control “Dashboard”, which is of type Unified Interface Page, we will add an action to display our message.
Go to Settings->Unified Service Desk and click Hosted Controls:
We will open the PageReady event:
Click + to add an action:
Be sure to add the action on to the event after saving it:
Now start USD. When the incident control finishes loading, we will see our message:
Note you can also call by creating a function and invoking the function right away to produce the same result: