Form widget
The form widget is a platform form within the Service Portal UI with a few differences. You can use this base system widget as-is in your portal or clone it to suit your own business needs.
URL Parameters
| Parameter | Description |
|---|---|
| sys_id or sl_sys_id | Sys_id for the record to be displayed. |
| table, sl_table, or t | Table for the record to be displayed. The form widget validates access to the table by checking for the necessary cross-scope privileges when fetching data from the table. To turn off validating cross-scope privileges, you can set the glide.service_portal.enforce_cross_scope_check_in_form system property to false. For more information, see Service Portal properties. |
| view or v | 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:
https://example.service-now.com/sp?id=form&table=incident&sys_id=1c741bd70b2322007518478d83673af3&view=portal
Scripting
Not all client scripts are supported in the Service Portal. To understand how client scripts interact with forms in the Service Portal, see Service Portal and client scripts and Supported client script types and APIs.