Expand my Community achievements bar.

Applications for the 2024-2025 Adobe Experience Manager Champion Program are open!

Execute a statement only if no messagebox is open

Avatar

Former Community Member
I am working on a Dynamic form in Designer 7. I want to execute the printbutton click event from another button, but only if no message box is open. Can anyone suggest javascript to acomplish this? I am a newbie at this!



Thanks!



Nelson
1 Reply

Avatar

Level 5
You need to build logic to triger message only on surtain condition. If 'else' condition is met call the code to invoke the 'PrintButton' 'Click' event.



A simple logic would like this...



if(){ //condition which gives message box

//step1;

//step2;

xfa.host.mesageBox();

//step3;

}else {

form1.PrintButton.ececEvent("click");

//replace above expression with actual SOM expression.

}



Good Luck,

SekharN

www.lawson.com