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

Nicht drucken, wenn Textfeld leer

Community Beginner ,
Jun 05, 2024 Jun 05, 2024

Copy link to clipboard

Copied

Hallo liebe Community,

ich erstelle ein Formular direkt aus Adobe Acrobat Pro heraus.

 

Es enthält ein Textfeld, das folgendes Verhalten haben soll:

Wenn das Textfeld vom Anwender nicht ausgefüllt wird oder versehentlich eingegebener Inhalt wieder gelöscht wird, sollen zwei daneben stehende statische Texte nicht ausgedruckt werden, aber am Monitor sichtbar bleiben.

 

Hat jemensch eine Idee, wie man das am einfachsten umsetzten kann? Ich wäre überglücklich!!!

 

 

TOPICS
PDF forms

Views

500

Translate

Translate

Report

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

Copy link to clipboard

Copied

Field names:  "Entry" (the field the text will entered), "Static1", "Static2".

1)  Set the default values (in the options tab of the field properties) of Static1 and Static2 to the text that should be in them.

2)  Set them to Read Only (in the General tab) of the field properties.

3)  Enter the following custom validation script in the Entry field:

if(event.value)
{
this.getField("Static1").display=display.visible;
this.getField("Static2").display=display.visible;
}
else
{
this.getField("Static1").display=display.noPrint;
this.getField("Static2").display=display.noPrint;
}

 

View solution in original post

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Use read-only form fields for the text and you control it with a script.

Votes

Translate

Translate

Report

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 05, 2024 Jun 05, 2024

Copy link to clipboard

Copied

Vielen Dank für diesen Tipp! Wo könnte ich ein Beispiel-Script finden? Habe keinen blassen Schimmer von JavaScript.
Many thanks for this tip! Where could I find an example script? I don't know the first thing about JS.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Field names:  "Entry" (the field the text will entered), "Static1", "Static2".

1)  Set the default values (in the options tab of the field properties) of Static1 and Static2 to the text that should be in them.

2)  Set them to Read Only (in the General tab) of the field properties.

3)  Enter the following custom validation script in the Entry field:

if(event.value)
{
this.getField("Static1").display=display.visible;
this.getField("Static2").display=display.visible;
}
else
{
this.getField("Static1").display=display.noPrint;
this.getField("Static2").display=display.noPrint;
}

 

Votes

Translate

Translate

Report

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 05, 2024 Jun 05, 2024

Copy link to clipboard

Copied

LATEST

Liebe PDF Automation Sation,

es funktioniert, es funktioniert, es funktioniert!!!!
1000 Dank!!!

Votes

Translate

Translate

Report

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