Create confirmation popup on incident table once ok is clicked, it should call gs.eventqueue
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2024 08:03 PM - edited 01-10-2024 10:42 PM
Hi Everyone,
My use case is
"I want to create a confirm popup box and once ok is clicked, it should call gs.eventqueue"
Please do let me know the best solution which includes GLideAjax from client script call scriptinclude and then in script include function call gs.eventqueue. Thank you
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2024 08:42 PM
Please check below:
function confirmSubmit() {
// Set the 'Incident state' and 'State' values to 'Resolved', and display mandatory fields
alert("Submitting the form");
gsftSubmit(null, g_form.getFormElement(), 'get_details');
}
if (typeof window == 'undefined')
serverResolve();
// Server-side function
function serverResolve() {
gs.eventQueue('incident.inactivity', current, gs.getUserID(), gs.getUserName());
action.setRedirectURL(current);
}
Please accept the solution if it solved your query or please mark helpful if this helped.
Thanks,