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

Submit Selected Page

realname
Registered: Aug 15 2008
Posts: 93
Answered

I have been trying to find a solution or answer to my question which is how can a user submit only one page of a multi page form. After searching this forum, I found several posts asking the same thing however, they were all unanswered.

Can only 1 page of a multi page document be submitted and if so, how? Do you have to have Livecycle ES to do this?

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
I imagine that the reason those questions were unanswered is that you can't submit a single page. Or to put it more correctly. You can't submit the physical form page. That would be the equivilent of extracting a single page from a PDF. This is a no-no in a reqular PDF form being viewed in Reader. And in LiveCycle it's just impossible since the concept of a "page" is fuzzy.

You can however submit the data that's on a single page. After all, it's the data that's the important bit. There are two different ways to do this. First, the "submitForm" function has an "aFields" input for specifying the exact fields that will be submitted. This method isn't very useful for an XFA form. So, for a LiveCycle form you'll need to use the second method, which is to submit custom XML data.

Write a script to walk through the fields on the form and find out which ones fit your criteria for submission. Add these fields to an XMLData object and send them off with the "submitForm()" function.

BTW: there are ways to submit an actual phisical page. But they are not easy to implement and are not suitable for all users. If you are not a prgramming guru or up to major coding, then it's best to consider this a non-feature.

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]

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

realname
Registered: Aug 15 2008
Posts: 93
Thank you very much for your response. It's good to know that you just can't do it or at least easily instead of spending hours trying to find out how it can't be done.

I did however send the form as an xdp file and when I open it using Acrobat, I receive a message saying that it could not open because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded)

When I say ok to this, the form opened anyway displaying the completed form page of the pdf with the correct data and did not include the unwanted text page.

I can't say I understand why.

Thank you again for your answer and while I am here, can you point me to tutorials on populating fields from a database based on a selection (i.e. ID number) from the client?

Regards,
Realname
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Interesting, so it seems you are almost getting what you want with Just XDP. Did you modify the XDP for submitting it??

I haven't written any tutorials about popuplating lists from a DB, and I'm not sure if there are any on this site. There are tutorials and samples that come with LC, and of course there's the "Data-Dropdown" on the "Custom" library tab. The initialize event in this component contains all the code you need for populating a list from a DB. Of course you'll need to modify it for your own conditions.

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]

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

realname
Registered: Aug 15 2008
Posts: 93
No, I didn't do anything at all to the xdp but if I knew what they meant by decoding it or adding it as an email attachment, I would try it.

As for the data base, what I would like to do is have the user enter, say their employee number, and relative fields such as name, address etc. would populate.

Thanks,
Realname
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
In a LiveCycle form the form fields can be connected directly to an ODBC connected Database. But this strategy will not work unless the DB is setup on the user's system. Look on the Dataview Tab. You'll find tutorials on this web site on this topic.

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]

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