
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2018 09:26 AM
I'm using the form widget to display a form depending on the type of record selected (incident, requested item, demand, etc.) from an open records page. How does the form widget determine which view to use?
Examples:
- Logged into Service Portal as a user with no role (ess user). Select an open incident. The form widget displays the Self Service view, as I would expect.
- Logged into Service Portal as a user with itil role. Select an open incident. The form widget displays the Service Portal view. I expected it to display the Default view, which is what is displayed when I log into the backend.
Thanks!
Solved! Go to Solution.
- Labels:
-
Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2018 01:18 AM
The form widget looks for the parameter "view" or "v" on the url or as an option from the option schema.
URL example: <instnace_name>.service-now.com/sp?id=form&table=sc_req_item&sys_id=<record_sys_id>&view=<name_of_view>
If a view name is not given in the url or the option, I believe it will default to "sp" (service portal). If a "Service Portal" view isn't found then depending on roles it will default to "Default" view or the view the user is allowed to see.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2018 02:28 PM
Ahh, understood. Thanks for all the help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2018 03:02 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2020 05:16 AM
Even though in URL i have mentioned the view name, for the end user its still opening the self service view.
Does anyone have a solution for this issue????