Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

Message Box Help

Avatar

Former Community Member
Fairly new to Livecycle.

I'm wanting to put in a message box in where when someone clicks on the Reset button, they get a message box that says "are you sure you want to clear all data?", and then they have a choice "yes" or "no". If they choose yes, then the data is cleared; if they choose "no" then nothing happens.

Please help!

Thank you.
4 Replies

Avatar

Level 2
Paula -

Try the following



var choice = app.alert("Are you sure you want to clear all data?",2,2);

if (choice == 4)

{

xfa.host.resetData();

}

Avatar

Former Community Member
Nancy -- It worked, but now after I get the message and scroll up to the prior page, it gives me the message again?

Any ideas??