Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Scrip: define the single border of an object

Level 2
Level 2


is it possible to define the border of an object with script? My need would be for example to define for an object the bottom border only. I have found some very old examples that do not work on my version of LiveCycle :


$.ui.oneOfChild.border.getElement("edge",2).presence = "visible"


The example above does not work on my TextField, on initialize event.

Thank for any help. 😉

0 Replies
Level 10
Level 10

Hi there,


it seems like any property edge within the "ui.oneOfChild.border" has only 1 instance that can be modified. In any case that instance would be 0 instead of 2.

If you want to modify that specific instance, such as 2, you would need to access directly the border property of the object like the following.

$.border.getElement("edge", 2).presence = "visible";

the difference between both is the following:

accessing the border/edge property of an UI is the borders that represent the field, such as the highlighted zone which the software displays for you. This border is one entity of an edge index based (0)


accessing the border/edge directly from an object is the borders that wraps the caption along with the highlighted zone. This border is separated in 4 different edges index based (0-3)


I hope this will help.