Popup confirmation with multiple buttons
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2015 01:32 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2015 06:46 AM
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..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2015 06:51 AM
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..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2015 07:31 AM
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.
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2015 08:15 AM
destroy it in the ui page client script section...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2015 08:56 AM
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