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

reset action

jeanmed
Level 3
Level 3

Is there a way to make a "Super REset", il want to script a botton who reset my form lick if i close it and open it again.

I need to delete all the instances (created with addInstance) !

Thanks

2 Replies
djaknow
Level 7
Level 7

There's a standard button in Designer called Reset Button containing a script:

xfa.host.resetData();

which should accomplish this for you.

Jono_Moore
Level 10
Level 10

You may also need to add a xfa.form.remerge(); to get everything back to the initial state.