Skip to main content
February 22, 2024
Question

Textfeld soll eingeblendet bzw. Pflichtfeld werden wenn Kontrollkästchen aktiviert wird

  • February 22, 2024
  • 2 replies
  • 896 views

Hallo!

 

Ich Nutze Acrobat Pro 2017

 

Ich habe 2 Vorstellungen, die ich in einem PDF umsetzen möchte.
1. Wenn ich ein Kontrollfeld aktiviere, möchte ich, das ein Textfeld eingeblendet wird.
2. Wenn ich ein Kontrollfeld aktiviere, möchten ich, das ein Textfeld zum Pflichtfeld wird.
Durch deaktivieren des Kontrollkästchens sollen die Textfelder wieder ausgeblendet bzw. kein Pflichtfeld mehr sein.

Wie mache ich das. Bekomme es nicht hin.

Hilfe wäre echt nett.
Anbei ein PDF wie ich es mir vorstelle.


Danke

This topic has been closed for replies.

2 replies

JR Boulay
Community Expert
Community Expert
February 22, 2024

1. You can use the Tooltip, or show/hide a (text) field on Mouse Enter/mouse Exit trigger.

 

2. Use this script on MouseDown trigger:

if (event.target.value != "Off") {this.getField("FIELDNAME").required = true;}
else {this.getField("FIELDNAME").required = false;}

(Don't forget to edit the field name)

Acrobate du PDF, InDesigner et Photoshopographe
Amal.
Legend
February 22, 2024

Hi @35622078 

 

I hope this message finds you well. Thank you for getting in touch.

 

JavaScript might be a viable solution to address the workflow you're aiming for. For detailed guidance and instructions, I recommend referring to the following resources:

  1. JavaScript Console Tutorials
  2. Applying Actions and Scripts in PDFs

 

I trust these resources will provide the information you need.

 

~Amal