Skip to main content
Known Participant
August 22, 2023
Question

drucken

  • August 22, 2023
  • 5 replies
  • 744 views

Gibt es eine möglichkeit das ein Formular nur druckbar ist wenn alle erfordelichen Felder ausgefüllt sind 

This topic has been closed for replies.

5 replies

JR Boulay
Community Expert
Community Expert
August 27, 2023

Place this script in the "Document Will Print" document action:

 

if (this.getField("MANDATORY").value == this.getField("MANDATORY").defaultValue)
{app.alert("Blablabla");}

 

Of course you must change the field's name and the alert text.

 

Acrobate du PDF, InDesigner et Photoshopographe
JR Boulay
Community Expert
Community Expert
August 26, 2023

He explains that this is (fortunately) not possible and that all we can do is display an alert to warn the user.

Acrobate du PDF, InDesigner et Photoshopographe
Known Participant
August 27, 2023

die Warnung würde mir schon reichen habe ich weiß nicht welcher script und wo genau ich diese eintragen muss damit es funktoniert

 

JR Boulay
Community Expert
Community Expert
August 26, 2023

Did you misunderstand try67's answer in the linked topic above?

Acrobate du PDF, InDesigner et Photoshopographe
Known Participant
August 26, 2023

Ich weiß nicht welche Java script ich brauche 

JR Boulay
Community Expert
Community Expert
August 23, 2023
Acrobate du PDF, InDesigner et Photoshopographe
Known Participant
August 25, 2023

komme damit nicht klar ich möchte das wenn ich ein Pflichtfeld habe erst gedruckt werden kann wenn das Pflichtfeld ausgefüllt ist oder das ein Hinweis erscheint aber nur für das eine Feld zum Beispiel Mitarbeiter (Name) und wo soll ich das eintragen?

JR Boulay
Community Expert
Community Expert
August 23, 2023

It's possible with JavaScript but it's really not user friendly.

He may have many good reasons for printing an incomplete form and to complete it later or elsewhere.

Acrobate du PDF, InDesigner et Photoshopographe
Known Participant
August 23, 2023

Es soll nur ausgedruckt werden wenn der das Feld ausgefüllt hast du einen Javascript für mich der dies erfüllt?