Hide UI button from backend but not portal

vidhya_mouli
Giga Sage

I have a UI button on a form which I want to hide in the backend but not in the portal. How to do this?

10 REPLIES 10

Ankur Bawiskar
Tera Patron
Tera Patron

@vidhya_mouli 

is that UI action client side or server side?

if it's client side then it won't show

check this link

How to hide UI action from portal 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

This UI Action is Server Side. And by the way I want to hide it from the backend and not the portal.

@vidhya_mouli 

then add this in UI action condition along with other conditions

give the name of portal name in that so that it's see only in portal and not in native

gs.action.getGlideURI().toString().indexOf('/sp') != -1

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

When I add this condition to my UI Action, it hides it from both backend and the portal. Should I change the UI Action to Client?