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

I thought the issue got cracked, but unfortunately it is not !


I commented out that code from the client script, which you highlighted, did a cache.do as well, but it makes no change to its behaviour..


The code in your client script will keep on opening the UI page of commenting out the condition.. Just try adding the actionaname part to the condition and check..


ashwani_eshoppi
Kilo Expert

Tried with the actioname, able to get the action name on click of No from the popup.


In the client script , put the dialog in the if condition for the actionname set as resolve_incident.



Now the popup does not shift or reappear, but it does not go off.


If i try and use destroy method in the client script it shows undefined type error.



I need to close that popup window and perform the action which i got in the actionName.



Also, like i said before ...


If in the client script...


i write like


if (childCount != '0')


  {      



  showConfirmationDialog(actionname);    


  return true; //----------this line was return false , if i write true , the value gets updated but the popup does not stay.It shows and goes away.



  }


destroy it in the ui page client script section...


ashwani_eshoppi
Kilo Expert

That i already tried which didn't worked..If i destroy for onclick event of No button from ui page's client script.. it doesnot update the record itself.. only popup disappears i.e. the gform setValue and sysverb_update does not act rather it works like cancel