Forum for the PDF-XChange Editor - Free and Licensed Versions
Moderators:PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
I made a nice form field document for work report and everything is fine. There's just one thing I am wondering about... is there a way to disable all the zeros in sum field?
I know about the visibility options but that doesn't cover my needs. I just want to disable the zeros as long as there is nothing to sum.
I do not know if this information can already help you...
The "Properties" of a text box where you like to see nothing in case if it is 'zero', should have to following particular settings:
- Format Value > Category = Number
- Value Validation > Validation = Custom Action
- Validation action = Run a JavaScript... --> if (event.value==0) event.value = "";
Myself, I do not know if there exists a general setting to make this happen for the whole PDF.
Actually, you have to change these settings separately for each individual text box.
I was suspecting that I needed a script, but scripting is definitely not my speciality, so thanks a lot for the script. It solved my problem very elegant.