Expand my Community achievements bar.

Change the color of a line with javascript

Avatar

Former Community Member
I am trying to change the color of a line based on a calculation. When a calculated field is negative I would like a line to turn white (I want the line to disapear against a white background).



I am using Livecycle 8.0 on a form saved as a 8.0 Dynamic XML PDF form.



would I do something like:

var a = xfa.resolveNode("L115");

a.line.edge.color = "255,255,255";
2 Replies

Avatar

Former Community Member
Hi,



Are you using Javascript or FormCalc?



In Javascript you should do something like this:

xfa.resolveNode("L115").borderColor="255,255,255";

Avatar

Former Community Member
also, you could try something like this, if you goal is to make it disappear.



a.presence = "hidden";



I admit I know nothing about .line.edge properties/objects.