Copy link to clipboard
Copied
Dear Adobe Support Team,
I hope this message finds you well. I am reaching out to seek assistance regarding an issue I am experiencing with the JavaScript functionality in Adobe Acrobat while working on a PDF form.I have implemented a JavaScript code to dynamically format form fields based on their values. Specifically, I want the fields to display a light red background with dark red text when the values are below 1.0 or above 1.6. Conversely, for values within the range of 1.0 to 1.6, I would like the background to be white with black text.
Current Implementation:
I have added the JavaScript code to the text fields. However, I am encountering the following issues:
Request for Assistance:
I would greatly appreciate your guidance on how to resolve this issue so that the desired colors are applied and maintained correctly after the user clicks outside the field. If there are alternative methods or specific settings that I should be aware of to achieve this functionality, please let me know.Thank you for your attention to this matter. I look forward to your prompt response.
Br,
Naitik
Copy link to clipboard
Copied
What script do you use?
Copy link to clipboard
Copied
You must disable the fields highlighting feature of the application to see the fill color you've applied.
Copy link to clipboard
Copied
You will find the reason and the solution here:
https://pdfautomationstation.substack.com/p/form-field-color-issues
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more