Try setting it to None first, then saving the file, closing it, then re-open it and apply the new code.
Just tried it.
if (event.value>=400 && event.value<=1000) event.target.textColor = color.black;
else if (event.value>1001) event.target.textColor = ["RGB",1, 0.5, 0];
else if (event.value<399) event.target.textColor = ["RGB",1, 0.5, 0];
first: "Value is not calculated". Save file. Open PDF > Edit Forms > Now i could see, that it's still there. Tried to replace with the code above. > Save.
When i open PDF, in a reader, it showed "orange" - but as soon as i pressed: Enter - it came up red (like it ran the calculation script again).
I do really appreciate the help, but i'm unfortunately unable to share the file, due some senstive information within the file.
Maybe i can create a new pdf with, some of the fields with actual problem. but i fear, it will solve the problem, so you wont see any issues.
Do you maybe have any other ideas or something i can try?
Not really, as I don't quite understand what is going wrong and without seeing the file I can't really help you out any further with it.
Just fixed the problem.
The Form field was called: IncubatorLow - IncubatorHigh - now i just called them: IncubatorLowColor - IncubatorHighColor, then edit the java script for validationminmax and edit the colors for my "java script" CustomColors.
Can save with it returns to the original script.
I don't get it why edit the from field can solve it, but it did