- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2025 06:57 AM
Hi All,
I want to display an info message to add attachment whenever the knowledge article is in draft stage
Please provide the client script to add workflow as draft
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2025 07:04 AM - edited 05-15-2025 07:06 AM
You can simple create an on load client script with below script:
if(g_form.getValue("workflow_state")=="draft"){
g_form.addInfoMessage("Please add attachment");
}
Client script configuration:
You can also achieve same by using UI policy also.
Regards,
Abhijit
ServiceNow MVP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2025 07:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2025 07:21 AM
Thanks Abhijit, it worked 🙂