Templates in Service Portal - not working

dschneide
Kilo Contributor

We want to use the templates in service portal forms. Is it possible to show the template bar in the service portal?

Since I didn ´t find any solution, I made a new reference field and used the applyTemplate() function like described here - Apply Template on Field Change — ServiceNow Elite. This is also not working in the ServicePortal.

We get the following error:

(g_env) [SCRIPT:EXEC] Error while running Client Script "Load Template": ReferenceError: applyTemplate is not defined

_logError @ js_includes_sp.jsx:63723

Any ideas how to get templates working in service portal?

12 REPLIES 12

jleon
Giga Contributor

Hello dschneide


I am trying to find out which console is throwing this type of errors related with Service Portal



(g_env) [SCRIPT:EXEC] Error while running Client Script "Load Template": ReferenceError: applyTemplate is not defined


_logError @ js_includes_sp.jsx:63723



How can activate this console to watch those errors?



Regards


Jesus


dschneide
Kilo Contributor

Hi Jesus,


it was directly in the browser developer console - JavaScript Errors.


mcconnellsj
Kilo Sage

Hello people

I have come across the same issue in Kingston and surprised at the oversight - a template based article in SP is blank, but fine in KB.

Is there a quick fix for this issue?  I cant find anyting on HI.