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

Change Stack Order using FormCalc?

Gattaca714
Registered: Dec 16 2009
Posts: 25

Is there a way to change the stack order of a field?
 
The field is currently in the "Send to Back" order, but I'd like to use a checkbox to "Send to Front".
 
I looked in the manual but only found how to do it manually.

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Field order if fixed, unless the field is in a repeatable subform. Why do you want to change this? maybe there is another solution.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

Gattaca714
Registered: Dec 16 2009
Posts: 25
I have a static form PDF.

I'm using a change event in a Checkbox field to change the font color from white to black in different fields so that it can't be seen. But the appearance of the numeric fields it changes still shows the sunken box appearance.

Since I can't hide the fields, I thought that maybe I could use a text field with the fill set to white to block the sunken box appearance.

Here is a picture of what my current code does:

[IMG]http://i88.photobucket.com/albums/k193/Rgarcia9/BeforeAfter.jpg[/IMG]

And the basic premise of my coding:

form1.BallotOrder.CheckBox2[0]::change - (FormCalc, client)

if (this.rawValue == 1) then
HideText[0].fontColor = "255,255,255"
VbmText[0].fontColor = "255,255,255"
PrecinctText[0].fontColor = "255,255,255"
fldBoVbmStub[1].fillColor = "255,255,255"
fldBoTestQty[1].fillColor = "255,255,255"

else

HideText[0].fontColor = "0,0,0"
VbmText[0].fontColor = "0,0,0"
PrecinctText[0].fontColor = "0,0,0"
fldBoVbmStub[1].fillColor = "255,0,0"
fldBoTestQty[1].fillColor = "255,0,0"

EndIf
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
One of the restrictions of a static form is that it's static. The fields are what they are. You're lucky that the colors are changing at all. This feature might not work in future versions of Acrobat. I think your only option is to go to a Dynamic form.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script