Reset button and message box.

Avatar

Avatar

martynd4832568

Avatar

martynd4832568

martynd4832568

04-04-2017

Newbie using Using LC ES4.   I have a Reset button. On click I would like to show a message box with "OK" and "Cancel" buttons, I would like the OK button to reset the form, and the Cancel to just close the message box and return to the form. I can do the reset, but the cancel escapes me.

I'm using this to generate the message box:

xfa.host.response("Continue with Reset? This action cannot be undone!", "Are You Sure?", 4,1);

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Magus069

MVP

Avatar

Magus069

MVP

Magus069
MVP

04-04-2017

Hi there,

You can simply use a messageBox to do this.

//2 -> Question

//1 -> OK Cancel

Hope this help!

Answers (1)

Answers (1)

Avatar

Avatar

martynd4832568

Avatar

martynd4832568

martynd4832568

04-04-2017

Many thanks - works perfectly - super quick response too!