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

Avatar

Level 3

I need to be able to reset certain fields in my form (which has 40+ pages) and not the entire form.

I made a button with this value:

xfa.host.resetData("form1.Pagexx.OptionList");

which works, but how can I add a range of items to be reset?

There must be 50 or so fields that will need to be reset....

Thanks

1 Reply

Avatar

Level 10

If you want to reset only sme fields in the entire form you need to pass the field name to the resetData method.

But if you can have some thing common for all those 50 fields which you can use to go in a loop then that would be an option. Means, having the same name so you can loop through the name of the field and use index while passing the field name to resetData method. Or if they are all in one single section, group them together inside a subform and loop through the subform nodes.. etc..

Hope this gives some ideas..

Thanks

Srini