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 - last edited 3 weeks ago
Hi @Alon Grod
g_form.addInfoMessage not available for list view on custom workspaces
Here are some links which might help you
Thanks and Regards,
Mohammed Zakir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello @Alon Grod ,
g_form.addInfoMessage() is work only on form not on list view . You can simply use alert() on list view .
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
3 weeks ago
Would you mind sharing if that worked for you in workspace list action?
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
