Copy link to clipboard
Copied
I want to change the text color in the text field to red according to the result, but I don't know how.
In the following cases, I want to change the result of "! Over!" to Red color.
I need your advice. Thank you.
====
var GetNextDAY = this.getField("Next-Birth-DAY").value;
var NextDAY = new Date(GetNextDAY);
var TODAY = new Date();
var HowMany = (NextDAY - TODAY)/24/60/60/1000;
if(TODAY > NextDAY){
event.value = ('!Over!');}
else{event.value = (HowMany.toFixed()+'Days');};
====
Hi
You should try this great free tool : http://practicalpdf.com/the-practicalpdf-date-library-for-adobe-acrobat/
Copy link to clipboard
Copied
1. What results are you getting?
2. Have you checked the Acrobat JavaScript console for errors?
It is best to use the util.scand method to obtain the date object for a date in a string format.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Hi
You should try this great free tool : http://practicalpdf.com/the-practicalpdf-date-library-for-adobe-acrobat/
Copy link to clipboard
Copied