How can I get current form view in Service Portal?

trikuxabi
Tera Contributor

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

8 REPLIES 8

it works thank you

Shreshta
Tera Contributor

Hi,

 

Were you able to resolve this problem? I have the same issue.

 

Thanks,
Shreshta.

Karthik98
Kilo Explorer

Any updates on this please? I am having same issue.

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.