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

Fields in subforms don't appear when form is emailed.

mark123
Registered: Mar 18 2008
Posts: 10

Hello all -

I have a large product configurator form and am using subforms and their presence property to hide or show fields based on user interaction. For example, I have a dropdown list with two items. If item 1 is selected, a previously invisible subform is made visible, revealing more dropdowns (product choices). If item 2 is selected, a different previously invisible subform is made visible, revealing a different set of more product choices.

The problem I'm having is when the form is submitted via email (as an entire PDF, not just the xml data), the fields in the subforms aren't visible in the email pdf, even though they are visible on the form and properly filled in by the user. For what it's worth, instead of an Email Submit Button, I'm using a regular button with the following javascript on the click event to email the form:

var mail;
var address = DropDownList1.rawValue;

mail = "mailto: " + address;
event.target.submitForm({
cURL: mail,
bEmpty: true,
cSubmitAs: "PDF",
cCharset: "utf-8"
});

The form has been Reader-enabled and saved as a dynamic form. I even tried manually forcing the subforms to be visible with the following script on the exit event of the submit button, but it did not work:

Page1.Products.ItemA_sub.presence = "visible";

I also tried it on the preSubmit event to no avial. Has anybody else had this problem? Can someone suggest a different approach? The goal is to get the fields in subforms to appear in a PDF email.

My Product Information:
LiveCycle Designer, Windows
stephen.mcc
Registered: Nov 30 2005
Posts: 5
Have you tried a condition type script in the form: initialize event that will check to see which sub forms should be visible based on the data in the form and display them at that time?

[bg=red]Business Forms Designer[/]

mark123
Registered: Mar 18 2008
Posts: 10
Hi Stephen -

Thanks for the reply.

It seems that my file was corrupt or something else was wrong, because I created a new file using large chunks of the one that did not work, and the new file works fine. Thanks again for the response.
fyz
Registered: Apr 2 2008
Posts: 9
Hi,

Do you need to recover the pdf fiel? If so, I think you can try a utility called Advanced PDF Repair to repair your PDF file. It works rather well for my corrupt PDF files. Its web address is http://www.datanumen.com/apdfr/

Alan
tsiebert
Registered: Jul 8 2008
Posts: 8
Could you tell me how you made the Subform Show based on selection with dropdown. I have been looking everywhere and can not fiqure out how to make it work.