Is it possible to show a custom modal from list view in agent workspace?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-26-2021 08:21 PM
I know we can edit multiple items from the list in Workspace. Is it possible to show a modal in the list view in the agent workspace? In below if I click on Escalateee, I want to open a modal view and send the input from modal to some script which process it.. Also is it possible to edit the Fields in the Edit button?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-26-2021 08:57 PM
You can use g_modal instead.
function onClick(g_form) {
g_modal.global.showHeader({
title: 'Test custom modal',
confirmTitle:'YES',
params: {
primaryValue: 'THIS IS A PRIMARY VALUE',
secondaryItems:{}
}
}).then(function(result){
alert('confirm:'+result);
}, function(error) {
alert('cancel:'+error);
});
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-26-2021 10:33 PM
Hi Pranesh,
Thank you for your reply. This works only for UI Action but not for List Action. Could I be missing something?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-26-2021 11:27 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-26-2021 09:40 PM
Hi
yes it is possible to open a modal from list view, but how it can be realized depends on what you mentioned with "and send the input from modal to some script which process it".
Typically you would implement an UI Action for that. There are many examples, which you can use as a template for your own UI Action. Go to table UI Actions and filter for "g_modal" at "Workspace Client Script":
And regarding your second question for displayed fields at list edit action:
You can control that fields by customizing the form layout for view "Workspace" at table of your chioce.
Kind regards
Maik
If my answer replied your question please mark appropriate response as correct so that the question will appear as resolved for other users who may have a similar question in the future.