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

Problem with empty record showing on repeating subform

bjasman
Registered: Apr 6 2010
Posts: 37
Answered

I created a form using LiveCycle Designer ES 9. On the last page there are four subforms set to repeat for each data item. If there is no data (either the tag is not in the XML or there is an empty tag in the XML) in the preview data, one of subforms will show an empty record while the other three do not like they are supposed to. I do not have a minimum count set for any of the four repeating subforms.
I did notice this is a problem if I preview the form with the Reader 7.0.5 or later selected for the default. Once I move to Reader 8.0 or later, it is no longer a problem.
Any ideas?

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Did you try setting the minimum count to 0?

XFA forms were new in Acrobat 7. Lots of changes have been made since then. It's likely that you are experiencing one or more problems. For example, it's possible that your form contains features Reader 7 doesn't understand and this is tripping it up, or it could be that Reader 7 just has problems.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

bjasman
Registered: Apr 6 2010
Posts: 37
I did try setting the min count to be 0, but that just clears out the checkbox for setting a min count. Same result. Is there anyway to find out what Reader 7 doesn't like. There are 4 total pages in my form. For troubleshooting I deleted one page at a time and re-ran the preview. I believe it doesn't like something on page 1. When that page is gone, it works fine, but I don't know how to find what exactly it doesn't like. I tried renaming objects so they are all unique.
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Later versions of LiveCycle Designer structured and interpreted the XFA differently that the earlier ones. So there may be an XML tag or structure in there that's not visible on the form itself. It's hard to tell. In LC Designer 8 there was an option for saving a form for compatibility with 7. It's gone in LCD 8.2 so there's no going back.

But the issue may not be anything specific that Reader is have a problem with. I could just be the amount of stuff. Indeterminant behavior like this usually points to a bug, and the Acrobat 7 version of XFA had lots of issues, so you're working in a grey area. You are probably better off designing your form to work in Acrobat 8 and 9 and living with minor rendering issue in 7.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

bjasman
Registered: Apr 6 2010
Posts: 37
Thanks for your feedback and insight. I think that is the point I am at, just continue for 8 and 9.