These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Extension reset button

sugbo
Registered: Oct 16 2009
Posts: 16
Answered

Hello forum members,

I use a reset button in my form with this script:

var returnValue = app.alert("Are you sure?",2,2);

if (returnValue == 4) //yes is 4, no is 3
{xfa.host.resetData();xfa.form.remerge();}
else
null;

Is there an extension to the script which makes the form "jump" to the first page? With this script the form stays at the last page.

Thanks.

My Product Information:
LiveCycle Designer, Windows
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Well,

to jump to a specific point ino the form, you can use the setFocus method.
Just add it to your curent script.

xfa.host.setFocus(xfa.form.form1.TextField1);

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

sugbo
Registered: Oct 16 2009
Posts: 16
Radzmar, vielen Dank!