water mark or prepopulated text inworknotes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi Team
when ever we are reopening the incident
can any one please help me on this requriement
Enable Mandatory capture of reason in Work Notes when an incident is reopened.
request is to ensure that whenever an incident is moved from Resolved to In Progress that is reopened by the caller or operate team, the system automatically should prompt the user or operate team to enter the reason for reopening, which should populate in the Work Notes field.
The incident should not be allowed to transition from Resolved to In Progress unless the reopening reason is mandatorily filled.
we need a water mark or pre populated text in the work notes
how to achieve this requirment
please help me here
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
you can show info message or field message from that UI action script
why to show that placeholder text all the times?
It is required only while reopening right?
If you still want then you can use this in client script when state changes from Resolved to In Progress
var streamNotes = g_form.getControl("activity-stream-work_notes-textarea");
streamNotes.placeholder = 'Please provide reason for opening this incident.';
Output
💡 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 || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
The script I shared should work for you.
Did you try that?
Let me know if any help required.
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Ankur has provided the code. @nameisnani you can add it as shown is ss below:
This works fine for your usecase. the placeholder only shows when prompted for adding worknotes during reopen.
Regards,
Ehab Pilloor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a week ago
Hi @nameisnani,
Did you try the above code?
Can you please mark above answer as Solution and Helpful if it worked as per your requirement?
Regards,
Ehab Pilloor