how to add Info Message to List Action Assignment in Workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi,
This is my List Action Assignment, the functionality is working find but im trying add g_from.addInfoMessage('hi') but nothing is happening.
How can I add info message so it will be visible to the user in List view.
function onClick() {
var checkedRecords = g_list.getChecked();
//gs.addInfoMessage('hi');
//g_form.addInfoMessage('tttt');
var ga = new GlideAjax('WmTaskBatchPdfExporter');
ga.addParam('sysparm_name', 'isPdf'); // Setting input
ga.addParam('sysparm_sys', checkedRecords);
ga.getXML(ajaxCallback);
}
function ajaxCallback(response) {
var answer = response.responseXML.documentElement.getAttribute("answer");
if (answer) {
top.location.href = answer;
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
yes g_modal should work
something like this
How to use UI Actions in Workspaces
💡 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 || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
this worked for me
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 || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Hello @Alon Grod ,
Yes , Glide modal will works . Just add 'g_modal.laert(msg)' where you have to add show the msg;
If this helps you then mark it as helpful and accept as solution.
Regards,
Aditya,
Technical consultant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
see if this helps
Why addInfoMessage / addErrorMessage Don't Work in Custom Workspaces – and How to Fix It
💡 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 || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
