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

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