Avatar

Correct answer by
Level 10

Hi,

the massageBox method has a return value, you can use to determin, if the user has clicked OK or not.

if (xfa.host.messageBox("Close Doc?", "Close Doc", "2", "1") === 1) {

          event.target.closeDoc(false);

}

View solution in original post