Copy link to clipboard
Copied
Hi,
I need your help, please. I have attached a file for better understanding.
I have two lists: "Countries List" and "Selected Countries List." Users can add countries from the drop-down list to "Selected Countries List" to keep track of all the countries they have visited. However, when exporting the file, it only exports the selected values in the "Selected Countries List." I want to get all the countries that are in the "Selected Countries List" without having to select them one by one.
Can you please assist me with this?
Thank you!
Copy link to clipboard
Copied
What are you using to export the file?
Field data exports do not include list items, because they are not data, at least not in the traditional sense. If you want these items exported, then you'll need to add them to a text field. This could be a hidden text field.
Copy link to clipboard
Copied
Thanks Thom,
I included a button to export to XFDF. I got what you mean, sorry to say but how to do so please?
Copy link to clipboard
Copied
Add a text field to the form, set it's visibility property to hidden. Then add code to the button that does the export to collect all the items in the list field into a CR/LF separated string and put that into the hidden field. Now all the seleted countries will be in the export data.
BTW: the export code seems a little complex. There isn't any reason to collect all the fields. Acrobat will automatically export everything that isn't a button.