- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2025 07:53 PM
I'm using UI policies to reference messages and insert them as placeholder text on my change requests.
This works fine in the default view, however if I open a change request on the Service Operations Workspace, it looks like this:
I've tried doing a client script instead, but it doesn't work either:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2025 10:32 PM
placeholder work differently in workspace
this worked for me in Service Operations Workspace
In your client script determine if it's native or workspace and accordingly handle
g_form.setFieldPlaceholder('close_notes', 'Enter a close notes');
if (top.location.href.indexOf('/now/sow/') > -1) {
// code for workspace
g_form.setFieldPlaceholder('close_notes', 'Enter a close notes');
} else {
// your current code for native
}
reference link, response from wmcgrath
How to Set Placeholder for Change Request using Client Scripts
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2025 10:32 PM
placeholder work differently in workspace
this worked for me in Service Operations Workspace
In your client script determine if it's native or workspace and accordingly handle
g_form.setFieldPlaceholder('close_notes', 'Enter a close notes');
if (top.location.href.indexOf('/now/sow/') > -1) {
// code for workspace
g_form.setFieldPlaceholder('close_notes', 'Enter a close notes');
} else {
// your current code for native
}
reference link, response from wmcgrath
How to Set Placeholder for Change Request using Client Scripts
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2025 05:06 PM
Thanks, I got it working using a similar change to the code