I have a custom Print Format with a custom Production Order Doctype. In the Print Format I have specified that the font color of certain fields be red.
When I fill the form and change to the printing format everything is correct, but when I click on the Print button and I go to the print preview, the color is lost and everything remains with the default black color.
I have solved part of the problem:
Now the font color specified in CSS is maintained. I only need to keep the font color specified in a Javascript script. The situation is the followed:
In a custom Doctype I have checkboxes for additional options. If any option is checked, it is represented in the custom Print Format by filling in a red box. This is done with the following code:
Is there a way to prioritize that property or should I use a conditional statement in CSS rules?
The method changes because it is not CSS, but it is a Javascript script embedded in HTML code.