These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Transparent fill or border

Morabe
Registered: Nov 21 2006
Posts: 20
Answered

Does anyone know the equivalent to Acrobat's "color.transparent"?

I tried using the same code on a text object's exit event but the whole field went completely black instead of transparent.

Help!

My Product Information:
LiveCycle Designer, Windows
StevenD
Registered: Oct 6 2006
Posts: 368
I think this may be what you are looking for. I found this in the Calculations and Scripts reference.

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

StevenD

koldee
Registered: Jun 15 2008
Posts: 7
Hi Steven,

I tried using that but it didn't work.

Basically on Button1 click,
xfa.resolveNode("mytextfield.border.fill.color").value = "255,200,200";

on Button2 click,
mytextfield.border.fill.presence = "invisible";

after clicking button1 then button2, the textfield still retain the color.
Morabe
Registered: Nov 21 2006
Posts: 20
Thanks for the assist. I blended your code to mine and now have the radio button object working correctly (showing the user the active field as they navigate around the form). Upon ENTER the fill on each button turns pale yellow, and upon exit it returns the object to its previous state. The code line in the ENTER event re hidden keeps LiveCycle from adding a black border around each button upon exit.

These codes are placed on each individual button, not the radio button group.

This is my blended code:

On the ENTER event:
$.fillColor = "255, 255, 204";
this.border.edge.presence = "hidden";
xfa.resolveNode("this.border.fill.color").value = "255,255,204";

On the EXIT event:
$.fillColor = "255, 255, 255";
this.border.fill.presence = "invisible";


The things we go through for our users eh??? Thanks again.