How to Add a Hint Message to the Change Request Table (Service Operations Workspace)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a month ago
Hi everyone,
I’m trying to add a hint message (tooltip or helper text) to the assigned_to field on the Change Request table in Service Operations Workspace.
Specifically, I’d like the hint to appear based on the Change Request Model being used.
For example:
1. for Standard Change request, the hint should display: “This is message for Standard Change Model.”
2. for Emergency Change request, the hint should display: “This is message for Emergency Change Model.”
I created onLoad Client Script and used g_form.addDecoration() function:
g_form.addDecoration('assigned_to', 'icon-info', getMessage('This is message for Standard change Model'));
This works perfectly in the UI (Classic) interface based on change model.
However, as g_form.addDecoration() is only supported in the Classic UI, it does not display in Service Operations Workspace.
I also tried setting a hint message directly in sys_dictionary, but that only allows me to define the message at the table level, not dynamically based on the change model.
Has anyone successfully implemented dynamic field hints or decorations in Service Operations Workspace?
Would appreciate any guidance or examples.
Thanks in advance for your help!
Regards,
Violeta Lutic
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a month ago
not possible.
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a month ago
Hi @Violeta Lutic ,
g_form.addDecoration() works only in the Classic UI and doesn't apply to the Service Operations Workspace (Next Experience). To dynamically show contextual hints in Workspace, you'll need to use UI Component Messages or View Rule-based hints via Form View Configuration and Client View Rules.
Here’s how you can achieve dynamic helper text for the assigned_to field based on the Change Request Model in Service Operations Workspace:
Use Client View Rules + Form View Configuration
Step-by-step:
- Navigate to Form View Configuration:
- Go to Workspace Experience > Form View Configuration
- Select the Change Request table and the Workspace view you're using
- Add a View Rule:
- Create a Client View Rule that checks the value of the Change Request Model field
- Example conditions:
- If change_request_model is Standard, show hint: “This is message for Standard Change Model.”
- If change_request_model is Emergency, show hint: “This is message for Emergency Change Model.”
- Configure the Field Hint:
- In the rule’s Actions, choose assigned_to field
- Set the Helper Text (this is the Workspace equivalent of a tooltip)
- Publish the Configuration:
- Save and publish the Form View Configuration
- Test in Service Operations Workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
Hello @pavani_paluri ,
I have tried to create a view rule on sysrule_view_workspace,
but I can't find where I can configure the field Hint,
could you please suggest the steps?
Thank you,
Violeta L.
