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

[AEM Gems Webinar] Accelerating Experience Manager as a Cloud Service development with Rapid Development Environments
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

0 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!