Setting FillColor to transparent
Hello all,
I am having a problem with a form I am laying out in LiveCycle Designer. I have a textfield that users click on and enter information. After the users are done updating the text field, if the text field contains a value I want it the fillcolor to be white. If the text field contains no value, I want it to be tranparent.
I already have the code to check to see if the text field is empty or if it has a value. My problem is in making the field transparent. In previous versions of Acrobat I used to use:
this.getField("FieldName").fillColor = color.white;
and
this.getField("FieldNme").fillColor = color.transparent;
this.getField no longer works with this new Acrobat. Instead, with LiveCycle Designer, for white, I am using:
this.fillColor = "255", "255", "255";
which works perfectly. I don't know how to set the transparency.
this.fillColor = color.transparent;
does absolutely nothing.
Does anyone know what I am doing wrong?
Thanks in advance,
Matt
I am having a problem with a form I am laying out in LiveCycle Designer. I have a textfield that users click on and enter information. After the users are done updating the text field, if the text field contains a value I want it the fillcolor to be white. If the text field contains no value, I want it to be tranparent.
I already have the code to check to see if the text field is empty or if it has a value. My problem is in making the field transparent. In previous versions of Acrobat I used to use:
this.getField("FieldName").fillColor = color.white;
and
this.getField("FieldNme").fillColor = color.transparent;
this.getField no longer works with this new Acrobat. Instead, with LiveCycle Designer, for white, I am using:
this.fillColor = "255", "255", "255";
which works perfectly. I don't know how to set the transparency.
this.fillColor = color.transparent;
does absolutely nothing.
Does anyone know what I am doing wrong?
Thanks in advance,
Matt