Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

reset action

Avatar

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

Avatar

Level 7

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

xfa.host.resetData();

which should accomplish this for you.

Avatar

Level 10

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