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
Solved! Go to Solution.
Views
Replies
Total Likes
Topics help categorize Community content and increase your ability to discover relevant content.
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
Views
Replies
Total Likes
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
Views
Replies
Total Likes
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
Thanks Paul, woks fine. Sorry I couldn't give you the max points as the other reply worked and was in first.
Cheers,
Eric
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies