Expand my Community achievements bar.

SOLVED

What happened to the .ui object in checkboxes?

Avatar

Former Community Member

In Acrobat 8.0, I could address the border of a checkbox using:

CheckBox1.nodes.item(0).ui.checkbutton.border.edge.color.value

this does not work when I save the form for acrobat 8.1 and above, with the object CheckBox1.nodes.item(0).ui being undefined, as opposed to a XFAObject in 8.0.

Any idea how I can address this property in 8.1 and above?

Thanks,

Eric

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

Try this loop:

for (var i=0; i<4; i++) {
  this.ui.oneOfChild.border.getElement("edge",i).color.value = "92,192,255";
}

Deals with one border at a time.

Good luck,

Niall

View solution in original post

3 Replies

Avatar

Correct answer by
Level 10

Hi,

Try this loop:

for (var i=0; i<4; i++) {
  this.ui.oneOfChild.border.getElement("edge",i).color.value = "92,192,255";
}

Deals with one border at a time.

Good luck,

Niall

Avatar

Former Community Member

I tried it on my machine and it works fine. I noticed that you have checkbutton and it shodul be checkButton. Also why do you use the nodes.item(0). You shodul only have to use CheckBox1.ui.......

Paul

Avatar

Former Community Member

Thanks Paul, woks fine. Sorry I couldn't give you the max points as the other reply worked and was in first.

Cheers,
Eric