Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Reset button and message box.

Avatar

Level 2

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.

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi there,

You can simply use a messageBox to do this.

//2 -> Question

//1 -> OK Cancel

Hope this help!

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Hi there,

You can simply use a messageBox to do this.

//2 -> Question

//1 -> OK Cancel

Hope this help!

Avatar

Level 2

Many thanks - works perfectly - super quick response too!