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

Conditional Formatting not read by Google Chrome

New Here ,
Apr 28, 2021 Apr 28, 2021

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

TOPICS
General troubleshooting , JavaScript , PDF forms

Views

388

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

correct answers 1 Correct answer

Community Expert , Apr 28, 2021 Apr 28, 2021

May be that the PDF viewer of Chrome doesn't support this.

Votes

Translate

Translate
Community Expert ,
Apr 28, 2021 Apr 28, 2021

Copy link to clipboard

Copied

LATEST

May be that the PDF viewer of Chrome doesn't support this.

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