How can I get current form view in Service Portal?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-06-2019 11:58 PM
I'm currently trying to get a form's view in Service Portal.
In the back-end using getView() works without a hitch, but it isn't accessible from the portal. g_form.getViewName() doesn't give JavaScript errors, but it always returns an empty string. I have also tried to get the "view" parameter from the URL directly, with no success.
Any help will be appreciated!
Thank you!
Xabi
- Labels:
-
Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-12-2025 05:32 AM
it works thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-10-2020 10:27 AM
Hi,
Were you able to resolve this problem? I have the same issue.
Thanks,
Shreshta.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-04-2020 08:42 PM
Any updates on this please? I am having same issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-05-2020 01:29 PM
Hi Karthik,
g_form.getViewName() is returning null but we can pass the view parameter in the URL and get the view using $sp.getParameter("view") in the server script of service portal if that meets your requirement.
Thanks,
Shreshta.