Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
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
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
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
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies