Usage of the confirm() function in eScript
Hi,
I have trouble getting a confirmation popup to appear. I have a popup applet "A" with a minibutton that invokes a method and closes the applet "A". The method is invoked via server script.
I want to have a new popup (with ok or cancel) appear after clicking the minibutton but before the method is invoked. As I understood, I could solve this with the confirm method in browser script. So I wrote the following code in browser script:
function Applet_PreInvokeMethod (name, inputPropSet)
{
//AR 20160226: Prompts for a confirmation of email address
if(MethodName == "(my minibutton method)")
{
if(confirm("Test. Do you wish to continue?"))