Block Save/Update when Activity Stream Post button is greyed out — Time Logging Enforcement
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hi Community,
We have a requirement to enforce time logging on Task-based forms (Incident, Change, etc.) in ServiceNow.
What we have built:
A UI Script that adds Hrs/Mins input fields next to the Activity Stream Post button
Post button is greyed out until Hrs/Mins are entered
When Post is clicked, time is logged via GlideAjax to task_time_worked
This works perfectly
Requirement:
When the Post button is greyed out (meaning user has typed a comment/work note but has NOT logged time), we want to block the Save/Update button on the form
0 REPLIES 0