The CreatorCon Call for Content is officially open! Get started here.

Popup confirmation with multiple buttons

ashwani_eshoppi
Kilo Expert

I want to build an Alert once any incident gets resolved.

The popup needs to have confirmation buttons -   'Yes' , 'No' and 'Cancel' .

On click of 'Yes' or 'No' need to do actions on server side.

If i simply put an alert it shows only Ok and Cancel.

Has anyone implemented such confirmation box before?

28 REPLIES 28

ashwani_eshoppi
Kilo Expert

Played with the return statement in the client script which calls the Glidedialogwindow to automaticaly route to incident list page.


Able to resolve it finally, thanks for providing your thoughts on this topic, hint to actionName helps while implementing this                                                                                                                                        


Finally


Also, please click on the Correct Answer and/or Helpful Answer buttons on the appropriate reply/replies if any and close of the loop.   This helps other users to see that a valid response was received.


ashwani_eshoppi
Kilo Expert

Sure, marked


ashwani_eshoppi
Kilo Expert

There is an issue here..


If the assigned to person to the incident, changes the state to resolved and clicks update/save , the ui page dialog is not called as we are checking the condition for action name to be 'resolve_incident' before calling the glidedialog.



Approach followed :


On click of resolve incident button, the dialog ui page is called, and in the client script within ui page we set the value to resolved and submits the form, which again calls the onsubmit script and skips the dialog box as the actionname gets changed to sysverb_update.



Any idea how to tackle this issue ?