Setting FillColor to transparent | Community
Skip to main content
July 31, 2006

Setting FillColor to transparent

  • July 31, 2006
  • 14 replies
  • 8367 views
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
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

14 replies

August 3, 2006
hello,



I got a problem which is similar to this one. I want the user to chose a picture in a field. The problem is that this picture should be in the background. When designing the form I sent the image field to the background but when testing the form, after having chosen a pic, it is in the front. So it's not as easy to chose the fields below as it usually should be.



Does anyone now how to solve this? Perhaps I should mention that I'm currently working with LiveCycle Designer 7.0. Is this "bug" fixed in 7.1?



Is it possible to update? The update manager doesn't search for any update of this program!
August 3, 2006
That is unrelated to Designer, it's related to the type of object in the PDF that is necessary to have a field which the user can click to select an image. That type of object will always be on top. You can have a background image by using an Image object in Designer instead of Image Field, but then the user can't select the image to use.



Chris

Adobe Enterprise Developer Support
August 4, 2006
Thanks Chris.



Is it possible to write a script in order to have a small Image Field where the user can select an image and to have an Image object in the background where the chosen picture will be placed?



Does anyone know how to solve this?

I'd be very thankful because this is one of the last problem I'm having with a project..
June 5, 2019

Has anyone figured out how to actually make the background transparent?

I'm *not* trying to make the field disappear, but instead color it under certain conditions and remove that color (i.e., transparent) under others. I make frequent use of "under-field" labels and such for guidance on my forms (e.g., light grey numbers on the far margin to enumerate the order in which the fields are being filled out. And, yes, this was a design requirement from my customers, even with a rigorously test tab order, they wanted the controls numbered.)

Thank you!