Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list
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!