Copy link to clipboard
Copied
Hallo Zusammen
Ich habe mein erstes PDF-Formular mit Acrobat Adobe erstellt. Dazu habe ich unter Textfeld-Eigenschaften/Berechnung die Option Wert ist Produkt (x) verwendet.
Soweit so gut, nun würde ich mir aber wünschen, dass nur eine Zahl ausgegeben wird, wenn diese nicht 0 (Null) ist. Dies heisst, ist die Zahl Null so soll das Feld einfach leer stehen und nicht die Zahl Null ausgeben. Ist dies überhaupt möglich und wenn ja wie?
Besten Dank im Voraus für die Unterstützung
Oliver
As the custom validation code of the field enter this:
if (event.value==0) event.value = "";
"As the custom validation code of the field enter this:
if (event.value==0) event.value = "";"
"The only disadvantage is, that i have to get my (big) sum formula also to Java, because i can´t use the field selection and additional a custom code."
You should use this script as a "Custom Format Script" instead of a "Custom Validation Script" because the Format script only modifies the display in the field, it does not change its real value which is always zero and therefore remains usabl
Copy link to clipboard
Copied
Die Frage stellt sich mir auch, weiß niemand eine Lösung ?
LG
Ingrid
Copy link to clipboard
Copied
As the custom validation code of the field enter this:
if (event.value==0) event.value = "";
Copy link to clipboard
Copied
Thank you, works perfect.
The only disadvantage is, that i have to get my (big) sum formula also to Java, because i can´t use the field selection and additional a custom code. The one or the other....
But thats nice to get practice ..... 😉
Copy link to clipboard
Copied
Hallo ist das immernoch eine gültige Lösung? ich gebe es hier in ein PDF Formular ein aber es passiert nichts.
Viele Grüße
Copy link to clipboard
Copied
Where does you use the script?
Copy link to clipboard
Copied
I don't understand the question. It's a contract sheet. I want to use it on Computer with windows.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
It should work. Could you share the file with us?
Copy link to clipboard
Copied
"As the custom validation code of the field enter this:
if (event.value==0) event.value = "";"
"The only disadvantage is, that i have to get my (big) sum formula also to Java, because i can´t use the field selection and additional a custom code."
You should use this script as a "Custom Format Script" instead of a "Custom Validation Script" because the Format script only modifies the display in the field, it does not change its real value which is always zero and therefore remains usable for further calculations.
Copy link to clipboard
Copied
Thank you very much. That safed my day 😉