- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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.
if my answer helepd you, please mark it solution accepted.
Regards,
Nikhil Bajaj
Regards,
Nikhil Bajaj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
The display condition is the following value:
" g_scratchpad.field_name.indexOf("test")!=-1"
The value set for " g_scratchpad.field_name" is set in the display business rule.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago - last edited 3 weeks ago
Hi @bonsai,
g_scratchpad (display BR / server side) is not available at the service portal as it's front side...
I don't understand "On platform screens, we use "g_scratchpad" as a display condition for UI actions."
Can you please explain it? What was your goal with this? Let's find some alternative
EDIT: re-formatted the text
/* If my response wasn’t a total disaster ↙️ ⭐ drop a Kudos or Accept as Solution ✅ ↘️ Cheers! */
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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.
if my answer helepd you, please mark it solution accepted.
Regards,
Nikhil Bajaj
Regards,
Nikhil Bajaj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @bonsai ,
Please note that g_scratchpatch will not work in service portal.
You have to clone the OOTB form widget and make changes to it for implementing this functionality.
If this solution helps you then, mark it as accepted solution ✔️ and give thumbs up 👍!