
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2019 05:53 PM
If a user has no roles, then $sp.getForm always seems to return the "ess" view, regardless of the view parameter.
Is there a system property or something that I can set that will cause $sp.getForm to return the requested view for a user with no roles?
Solved! Go to Solution.
- Labels:
-
Service Portal Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2019 06:40 AM
Response from ServiceNow: If there is a view named 'ess' on a table, as per the platform logic the non-roled users will be redirected to this view.
There does not appear to be any way to alter the behavior of $sp.getForm in this context.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2019 03:10 AM
Hi Giles,
Can you try the below?
Pass the view name as param
getForm(string table, string sys_id, string query, string view) |
(function() {
/* populate the 'data' object */
/* e.g., data.table = $sp.getValue('table'); */
data.f = $sp.getForm('incident', "a57fb269dbac0010b6db8e4748961947",'','cxs_popup');
gs.addInfoMessage(data.f);
})();

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2019 06:40 AM
Response from ServiceNow: If there is a view named 'ess' on a table, as per the platform logic the non-roled users will be redirected to this view.
There does not appear to be any way to alter the behavior of $sp.getForm in this context.