Skip to main content
Participant
July 7, 2025
Question

PDF wenn wert in Zeile höher dann feld oder Zahl Rot färben

  • July 7, 2025
  • 2 replies
  • 192 views

Gibt es dafür eine Formel die in in die PDF eintragen kann

2 replies

radzmar
Community Expert
Community Expert
July 7, 2025

Also mit JavaScript kannst Du Feldwerte prüfen und daraus Aktionen ableiten, etwa die Farbe des Feldes zu ändern. 

// Textfeld1 rot färben, wenn Wert größer 3
this.getField("Textfeld1").fillColor = event.value > 3 ? ["RGB",1,0,0] : color.white;

 

Packe das Skript in die Validierung des betreffenden Feldes und ändere ggf. Textfeld1 in den tatsächlichen Namen des Feldes. 

 

Randy Hagan
Community Expert
Community Expert
July 7, 2025

Not exactly. But Microsoft Excel (and doubtlessly other spreadsheet programs) will let you process that change, then you could in turn turn that formatted spreadsheet into Adobe Acrobat.

 

That workflow wouldn't help with, say, a fillable PDF form. But if you want that reporting result alone, you can generate the report with a spreadsheet and then turn it into a PDF with your reporting results.

 

I hope this may be helpful for you,

 

Randy