Emailed PDF is Blank

Avatar

15-08-2008

Hello,



I was wondering if someone could help me with a really weird problem.



I have a form I created that hides and shows a lot of different fields it also has some add and remove buttons. This all works great until the user hits the send email.



When the email is sent the PDF file that has been sent is comming in blank as if the user has done nothing? The Print button works fine. The on screen display works fine.



I am using the send as PDF and a mailto:email@address.com



Any Suggestions?



Thanks, Leo

Replies

Avatar

Avatar

pguerett

Avatar

pguerett

pguerett

20-08-2008

No I did not ...can you resend?

Avatar

21-08-2008

Paul,



I am getting pretty sure it is an event problem.



What javaScript Event fires when the form is opened the first time but not fired after the form has been filled in?



Can I set a variable after the form has been filled in once and carry it with the form so it doesnt call the hide code?



Thanks, Leo

Avatar

21-08-2008

Paul,



I got it.



Thanks for all your help.



It was an event issue. I just checked to see if a field had data filled in and that solved my problem.



Thanks Again, Leo

Avatar

Avatar

muffy_cw

Avatar

muffy_cw

muffy_cw

06-10-2017

HI

Can you plese explain what exactly you did to resolve the problem. Even I am facing the same problem, I am using javascript in document as well as in the combo box run custom script option.

Everything works fine but when I send the email the all the drop down boxes becomes blank everything else typed manually remains on the form.

Please help.

Avatar

Avatar

_Bruce_Robertson

MVP

Avatar

_Bruce_Robertson

MVP

_Bruce_Robertson
MVP

09-10-2017

Hi,

Leo might not be around after eight years, so I might chip in.  The first things I would look at is the binding of your drop down fields, make sure they are correct, and check any script that might run during initialization.

Do you have the same problem is you save the form and then re-open it?

If you are still having trouble can you add a link to your form in this thread and we can have a closer look.

Regards

Bruce

Avatar

Avatar

muffy_cw

Avatar

muffy_cw

muffy_cw

11-10-2017

Hi Bruce,

Thanks for coming to my rescue. I will tell you what I am trying to do. I am trying make a fillable personal information form in adobe acrobat which has name, address, contact number text field which is manually entered by typing and I have combox box dropdown list for country and state.

To add the Countries in the country combox box I added following script in "document javascript"

this.getField("country").setItems([" ","India","USA","Mexico"]);

I have added 1 blank dropdown because when I click on Reset button the country combo box doesnt get clear and resets to default value so if I keep one blank value as default and click on Reset button the combo box picks blank value which is blank and looks as if the combox box got cleared on pressing reset button.

And in the same country combobox in validate tab in "Run custom validation script" I have added following script to populate states details in state combox box drop down list.

if(event.value == " ")

this.getField("State").clearItems();

else

    switch (event.value) { 

        case "India": 

            this.getField("State").setItems(["Maharashtra","Gujarat","Rajasthan"]); 

            break; 

        case "USA":  

            this.getField("State").setItems(["Texas","Washington","Calfiornia"]); 

            break;    

        case "Mexico": 

            this.getField("State").setItems(["Sonara","Sinalao","Durango"]); 

            break;    

    } 

So now what happens in the above if have given a validation that if the country is blank clear state combox box.

So after my reaserch and googling I have realized is when I open the form my document script runs and adds the countries and my validation script based on the countries populates states in state combox box.

After filling up the form when I click on "Email" button not the reset button to email it to someone the document script doesnt run so the country combox becomes blank and based on it my validation script clears items in state combo box also.

So conclusion is my both the drop down list goes blank when I email it to someone.

I have found a work around for it.

What I have done is when I opened the form and after countries were added in country combo box I removed the script from document script since countries doesnt need updation every time I open the document it is a one time process and saved the document. This way my countries were added and I dont need to run the script each time I open the document.

After filling up the document when I click on "Email Button" the selected value remains and doesnt become blank and based on the selected value in country the value in state combox box remains as it is.

Can you help me in finding out a way where in I dont have to add a blank value in countries and when I click on reset button all the combox boxes get clear and when I click on email button all the values selected in combo boxes remain intact and doesnt go blank.

Avatar

Avatar

_Bruce_Robertson

MVP

Avatar

_Bruce_Robertson

MVP

_Bruce_Robertson
MVP

12-10-2017

Hi,

I think you will be better off moving your code to the preOpen event of the drop down control.  This way nothing will happen until the click the down arrow of the control.  You just need to reverse your logic a little for the state drop down.

Regards

Bruce