- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2021 12:58 AM
Hi Guys,
I have a client script for UI16 which displays a popup box to confirm an action.
I am using Glidemodal for this and this works fine.
However, this doesnt work in Agent Workspace, so how can I create a custom modal popup in Agent Workspace that allows me to display a message with a a yes and no, and if yes trigger the rest of the script.
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2021 02:35 AM
try g_modal.confirm in workspace client script
var msg = getMessage("Are you sure you want to end this chat?");
g_modal.confirm(getMessage("Confirmation"), msg, function (confirmed) {
if (confirmed) {
g_form.setValue('state', 'closed_complete');
g_form.save();
}
});
return false;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2021 02:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2021 03:21 AM
Thanks Pranesh that worked!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2022 07:16 AM
Hi, This works and it shows the Confirm screen.
But it doesn't wait for the user to select OK or Cancel.
It simply shows pop-up and proceeds with next statement.
Pls suggest.
Thanks.
Vijayalakshmi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2022 08:30 PM
Can you share your code