Copy link to clipboard
Copied
Hallo liebe Gemeinde,
zurzeit arbeite ich mit Acrobat Pro DC 20.012.20043.3217 und versuche mich mit dem Erstellen von Formularen.
Wie ich Formularfelder hinzufüge weiß ich, aber mit dem Dropdownfeldern bzw. dem Füllen von den Dropdownfeldern tue ich mir schwer.
Das Einfügen einzelner Einträge geht ohne Problem.
Ich habe aber einmal eine Excel-Liste mit Werten (40 Stück) und auch Textdateien mit Werte welche ich gerne in die Dropdwonliste habe möchte.
Nur finde ich nirgens eine Möglichkeit eine komplette Liste einzufügen. Suche schon seit gefühlt 2 Stunden und probiere - bekomme es aber nicht hin.
Könnt ihr mir hier bitte helfen.
Vielen Dank
Gruß
Dietmar
Copy link to clipboard
Copied
It can be done with a script. The basic code is:
this.getField("Dropdown1").setItems(["SELECT", "ITEM 1", "ITEM 2", "ITEM 3"]);
If you're interested, I've created a (paid-for) tool that allows you to do it quickly and easily, without having to write any code. You can find it here: http://try67.blogspot.com/2009/11/acrobat-import-text-file-to-drop-down.html
Copy link to clipboard
Copied
Hallo,
danke für deine Antwort.
Leider ist deine Lösung nicht praktikabel.
In meinen Listen sind manchmal mehr als 40 Einträge.
Gruß
Dietmar
Copy link to clipboard
Copied
My script can import thousands of items.
Copy link to clipboard
Copied
an einer kostenpflichtigen Lösung bin ich nicht interessiert.
Über einen Hinweis wie ich das Programmieren kann, würde ich mich freuen.
Danke
[Private info removed]
Copy link to clipboard
Copied
I've provided you with the code to do it. All you need is convert your list to an array of strings, which is not that difficult to do with a simple text editor. 40+ items is really not that much... Should not take more than 5 minutes to do.
PS. Do not reply by email, as it includes your full contact details. I've removed them from your previous reply.