Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Wenn Optionsfeld geklickt, soll Text erscheinen

Community Beginner ,
Jun 05, 2024 Jun 05, 2024

Hallo liebe Community,

 

ich erstelle ein Formular direkt aus Acrobat Pro heraus.

 

Darin gibt es ein Optionsfeld mit zwei Auswahlmöglichkeiten "Auswahl1" und "Auswahl2".

Je nachdem, welche Auswahl aktiv ist, sollen mehrere Textfelder erscheinen. Soweit easy: Einfach unter den Eigenschaften entsprechende Aktionen hinzufügen.

 

Mir stellt sich nun die Frage, ob es die Möglichkeit gibt, die betreffenden Textfelder (es sind vieeeeele) irgendwie zu bündeln / in einen Container zu packen, um dem gesamten Container auf einmal anszusprechen. Im Adobe LiveCycle Designer ging das wunderbar mit sogenannten "Subforms".

Hat jemensch Ideen?

TOPICS
PDF forms
493
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
1 ACCEPTED SOLUTION
Community Expert ,
Jun 05, 2024 Jun 05, 2024

You can put all the fields names in an array, and use script as custom calculation script of any text field, something like this:

var fields = ["Text1", "Text2", "Text3"];//put all the fields names in this array
var rb = this.getField("Group1").valueAsString;

for(var i=0; i<fields.length; i++){
var f = this.getField(fields[i]);
if(rb == "Selection1")
f.display = display.visible;
else
f.display = display.hidden;}

View solution in original post

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 05, 2024 Jun 05, 2024

You can put all the fields names in an array, and use script as custom calculation script of any text field, something like this:

var fields = ["Text1", "Text2", "Text3"];//put all the fields names in this array
var rb = this.getField("Group1").valueAsString;

for(var i=0; i<fields.length; i++){
var f = this.getField(fields[i]);
if(rb == "Selection1")
f.display = display.visible;
else
f.display = display.hidden;}
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 11, 2024 Jun 11, 2024
LATEST

Dear Nesa Nuraini,

thank you very much, very elegantly solved!
And I even managed it 🙂

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines