Access Form Fields on Form Created with LiveCycle Designer

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF CoreSuite for .NET (v7)  /  Access Form Fields on Form Created with LiveCycle Designer

DynamicPDF CoreSuite for .NET (v7) Forum

I'm working with a federal tax form that says it was created with Adobe LiveCycle Designer ES 9.0.  It's a fill-in form and I need to write to the fields on the form.  I do this by finding the field in the Document.Form.Fields collection and setting it's value property.  With the latest version, this is not working.  I've read other threads here that mention child fields.  Looking at the Form object, I see a single field object with a single child field.  Any idea how to access the approximately 50 fields on the form?  The form can be found at http://www.irs.gov/pub/irs-pdf/f8655.pdf

Thanks in advance for any help.
Posted by a ceTe Software moderator
Hello,

The form fields could be nested within each other several times, meaning the child fields may have other child fields nested within them. In order to access all the fields, you would need to recursively parse the form fields and their child field collections. The Acro Form Reader example shows how to do that recursively.

Thanks,
ceTe Software Support Team.


Thank you.  I had not considered children beyond the first layer.  The single child field I saw before has 44 children of it's own.
Has this example been moved, I am looking for the code that will detect all form fields recursively on a form where we do not know the field names.  I see an example referred to but it appears to have been moved or taken down and it is not in the downloaded samples on core suite.  Can someone point me to it?
Posted by a ceTe Software moderator
Hi,

You can refer to the code sample on reading form fields in an existing PDF here.

Also, you can find other examples on GitHub here.

Thanks,
ceTe Software Support Team

All times are US Eastern Standard time. The time now is 11:19 PM.