How to get tasks state in Service Portal?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2024 07:49 AM
Hi, I'd like to get the current task state.
Below code (Catalog Client Script) works on Desktop/backend/CMS, but not on Service Portal.
Do you have any ideas? 🙂
function onLoad() {
var state = g_form.getValue("state");
if (state == '2') {
alert("State is Work in Progress");
}
}
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2024 04:18 AM
Hi @MysUser alert() will work in Service Portal.
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0722501
Regards,
Sid