Portal screen UI action display conditions

bonsai
Mega Sage

When a record form is displayed on the portal screen, the UI actions used on the platform will be displayed.

 

On platform screens, we use "g_scratchpad" as a display condition for UI actions.

Button display control doesn't seem to be working on portal screens.

Is it not possible to use "g_scratchpad" as a display condition for UI actions on portal screens?

 

It works fine on the platform screen.

1 ACCEPTED SOLUTION

Nikhil Bajaj9
Giga Sage

Hi @bonsai ,

 

No, g_scratchpad is not directly available or intended for use within the Service Portal environment in ServiceNow. Instead, you should utilize the data object within the Service Portal's server and client scripts to pass information between them.

 

https://www.servicenow.com/community/developer-forum/is-g-scratchpad-available-in-service-portal/m-p...

 

https://www.servicenow.com/community/itsm-forum/g-scratchpad-is-not-working-in-service-portal/td-p/8...

 

if my answer helepd you, please mark it solution accepted.

 

Regards,

Nikhil Bajaj

Please appreciate my efforts, help and support extended to you by clicking on – “Accept as Solution”; button under my answer. It will motivate me to help others as well.
Regards,
Nikhil Bajaj

View solution in original post

5 REPLIES 5

RaghavSh
Kilo Patron

g_scratchpadd will not be visible on portal screen.

The workaround you can do is to create another UI action for portal and control its visibility based on view from UI visibility present in related list of the UI action.

So there will 2  UI actions on visible on platform and another on portal. The one which is on portal , you will have to think of an alternative of g_scratchpad


Raghav
MVP 2023