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

How to access every field in a document (in a loop)

Faabue
Registered: Jul 8 2008
Posts: 4

I want to validate all fields before printing and have a useful example with working script. But when I import a PDF and use it as a fixed background for my forms, I get an error inside this validation script that runs through all the fields by using
...
xfa.layout.pageContent(nPageCount,"field");
...

how can I solve this issue? / Howelse can i loop through all the fields?
And why does everything work when i import as floating stuff? (But that's not possible in my case)

thanks a lot.
fabian

Faabue
Registered: Jul 8 2008
Posts: 4
Oh please, i need help :'-(
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
See Stefan Cameron on Forms's article [url=http://forms.stefcameron.com/2006/06/26/process-all-fields/]"Process All Fields"[/url] for the JS and sample form.

George Kaiser

Faabue
Registered: Jul 8 2008
Posts: 4
Wow! Thank you soooooo much :) This ist f***ing great :D