Skip to main content
brianp23846296
Participant
July 17, 2024
Answered

change text color of calculated field when viewed in browser

  • July 17, 2024
  • 1 reply
  • 294 views

Hi, 

This custom validation for changing the text color of a calculated field works when the PDF is viewed in Acrobat.

But this doesn't seem to work when viewing the PDF in Chrome. Is there another option to get it to work in Chrome (or any browser)?

 

event.target.textColor = (event.value > 25 || event.value < -25) ? color.red : color.black;

This topic has been closed for replies.
Correct answer Nesa Nurani

Some browsers doesn't have good support for PDF scripts.

1 reply

Nesa Nurani
Community Expert
Nesa NuraniCommunity ExpertCorrect answer
Community Expert
July 17, 2024

Some browsers doesn't have good support for PDF scripts.