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.

Hide variable only in Service Portal

Geeky
Kilo Guru

Hi All,

How can I hide a variable only in Service Portal? The variable must be visible in native self service catalog.

1 ACCEPTED SOLUTION

Utpal Dutta1
Mega Guru

Hey Geeky,

You can use a UI policy or Client script to hide the variable, and make sure the Run scripts in UI type field is set to Mobile/Service Portal. In that case it will only run on service portal and not in the standard catalog view.

 

It's the most simple way to achieve the solution you want. If my answer helps then please mark it Correct and Helpful.

 

Thanks and Regards:

Utpal Dutta

View solution in original post

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

Any update on this?
Can you mark answer as correct, 👍 helpful if you were able to achieve the requirement. This enables other members to learn from this thread.

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Marketed correct answer.