Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Are UI policies, Catalog items applied in $sp.getForm function in Service Portal?

Hnyunh Uhn
Tera Expert

Hello everyone,

 

I have a problem with the $sp.getForm function. After printing the returned result of this function, I can see it returns all fields and tabs. However, I need my widget to render the form exactly as the form in the backend, which means fields and tabs which are hidden by the related UI policies and Client scripts should be also hidden in the widget. Is it possible?

 

Thank you in advance,

1 REPLY 1

Hnyunh Uhn
Tera Expert

I found the root cause. The related UI policies and Client scripts are configured to work only for the Desktop type.