Thank you for your feedback.
Form temporarily unavailable. Please try again or contact to submit your comments.
  • Madrid
  • London
  • Kingston
  • Jakarta
  • Istanbul
  • Helsinki
  • Geneva
  • Store

Form widget

Log in to subscribe to topics and get notified when content changes.

Form widget

The form widget is a platform form within the Service Portal UI with a few differences.

Figure 1. Form widget
Form widget in the shape of the portal form

URL Parameters

The form widget accepts the following parameters within the URL
Table 1. Form widget URL parameters
Paramter Description
sys_id or sl_sys_id The sys_id for the record to be displayed
table, sl_table, or t The table for the record to be displayed
view or v The view used to display the record
In the following example. The URL would display an incident with a sys_id of 1c741bd70b2322007518478d83673af3 in the portal view.
Table 2. Supported and unsupported form scripts
Form script Description
Client scripts Service Portal uses UI type set to All or Mobile/Service Portal. Client Scripts marked as Desktop rely on legacy APIs that aren't supported by Service Portal. Before flagging a script as Mobile or All, make sure you are only using mobile APIs.
UI Actions All server-side UI actions are supported in Service Portal, although setRedirectURL() operations are ignored because Service Portal forms handle redirection in a different way than the platform.

Any UI Actions marked as Client are ignored by the form widget.

UI Policies Supported, although you should use only declarative UI Policies. Avoid scripting unless the outcome cannot be achieved through the condition builder.
UI Macros Not supported as UI macros use Jelly.
Formatters Not supported as formatters use Jelly.