Copy link to clipboard
Copied
Created a fillable pdf, with very simple calculations, and a validation script at the end.
The last box is the result of a subtraction between two values.
The text box's colour changes to green if the result value is positive, and to red if the value is negative.
The validation script is the following:
var val00 = Number(event.value);
if (val00 < 0) {event.target.fillColor = color.red;}
else if (val00 >= 0) {event.target.fillColor = color.green;}
The form works pefectly if opened with Acrobat, however does not work if opened with other softwares such as Google Chrome.
Is it an issue with the validation script or is it simply Chrome that does not read it?
Is there a way to write or export the file so that Chrome is able to detect the validation script?
If there is no way to do so, what other programmes are able to read such document besides Acrobat?
Thanks in advance!
Lorenzo
May be that the PDF viewer of Chrome doesn't support this.
Copy link to clipboard
Copied
May be that the PDF viewer of Chrome doesn't support this.