![]() |
| Adobe Forums » Software Discussions » Adobe Acrobat » Acrobat Scripting Languge » Custom Borders using Javascript |
| Tags: |
![]() |
| LinkBack | Thread Tools | Display Modes |
|
|||
|
I need to make custom borders for all of my fields. I need to make a border on both the left and right, but not the top. I need the same border style for each field. The only way I know how to do this is to use javascript, but I not sure how to get it to work in Acrobat. I am pretty new with javascript, so any help would be appreciated.
Thanks! Lisa |
|
|||
|
Are you using Acrobat Forms Tool or LiveCycle Desinger to create the form?
In LiveCycle Designer one can use the "Border" Window, Shift + F8. If you want to use either FormCalc or JavaScript in LiveCycle Designer, have you looked at "Changing the visual properties of an object on the client" in the "scripting Reference" in LiveCycle Designer. if (CheckBox14.rawValue == true) xfa.resolveNode("TextField.ui.#textEdit.border.edg e").stroke = "solid"; else xfa.resolveNode("TextField.ui.#textEdit.border.edg e").stroke = "lowered |
|
|||
|
Is there any way that it can be done in Acrobat? This form needs to be used by other people in my department. Most of them know how to use how to use Acrobat, but LifeCycle is a little above their heads. Plus, I have the form already created, and it doesn't seem to be letting me change the Borders - it comes up with "borders cannot be used in forms with PDF backgrounds.
|
|
|||
|
Well, I thougth I knew how to use Acrobat, but I guess I don't. I have tried many ways to write the script for the borders, but with no luck. I would appreciate any push in the right direction that you are willing to give.
I am working with Acrobat 8.1.3. I have about 150 text fields that I would like all to have a thin red border on only the left and right sides (none on the top or bottom. Every one of the text fields on the page need this border, except one, the title. Thanks everyone for all your help! |
|
|||
|
none on the top or bottom That's the problem - you can't set individual border sides in Acrobat JS like you can in HTML or CSS. You can set a borderStyle, but you can't tell it to only have a left or right border - the borderStyle affects all 4 sides. Geo's suggestion is the way to go. Put your thin red line borders on the right and left of each field as just lines, and then set the fields to have no border. End result will look the same. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|