Create confirmation popup on incident table once ok is clicked, it should call gs.eventqueue

aparna_sunil
Tera Contributor

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

ahefaz1
Mega Sage

@aparna_sunil ,

 

Please check below:

 

 

ahefaz1_0-1704948066796.png

 

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,