Expand my Community achievements bar.

Setting transparent fill color

Avatar

Former Community Member
b How can I set the transparent color to a form object from a JavaScript code?



For example in this case:

> xfa.resolveNode("this.border.fill.color").value = "255,255,0";



This line set the object color to yellow. And transparent color? How I have to do?




Thanks !!!

Dan
4 Replies

Avatar

Former Community Member
While XFA supports any color space, the
usable color space depends on the target. Since your forms are rendering to PDF (or possibly HTML if you're using LiveCycle Forms), you're unfortunately limited to their support which is RGB only.



In short, you can't set the transparency value of a color when targeting PDF.



Stefan

Adobe Systems

Avatar

Former Community Member
Danmaster, do you want to 'remove' the fill color of an object?

In that case, you may want to try:




this.border.fill.presence = "invisible";





Steve

Avatar

Level 2

What is this command in FormCalc?

this.border.fill.presence = "invisible";