Changing the checkmark color of a checkbox in a static PDF

556 views
Skip to first unread message

partypoopa

unread,
Dec 2, 2011, 5:16:11 AM12/2/11
to Adobe LiveCycle Developers
Hi,

I am not sure if it's possible, but I am having trouble changing the
checkmark color of a checkbox in a static PDF. It works fine if the
PDF is dynamic, but it craps out when the PDF is static.

Is there a workaround? I don't have to change it dynamically based on
user interaction, the client just wants a blue checkmark in a static
PDF. Anyone having the same issue?

var vName = this.somExpression;
var fieldObj = xfa.resolveNode(vName + ".ui.#checkButton");
// set up a variable to deal with the tick colour
var myTick = event.target.getField(this.somExpression);
myTick.textColor = color.blue;
fieldObj.mark = "check";

This works when rendered as a Dynamic PDF, but myTick is always null
when rendered as Static PDF


Regards,
Nelson

SnapShot675

unread,
Dec 2, 2011, 8:46:12 AM12/2/11
to Adobe LiveCycle Developers
Try adding a regular text field to your form then set the field
valuecolour to the shade of blue you want.  Then using your object
propertieschange the textField to a checkbox.  The check colour should
bemaintained.
Peter L

partypoopa

unread,
Dec 5, 2011, 3:20:29 PM12/5/11
to Adobe LiveCycle Developers
Got an answer I was looking for from Adobe Forums.

<font>
<fill>
<color value="0, 0, 255"/>
</fill>
</font>

http://forums.adobe.com/message/4059106?tstart=0


Nelson

Reply all
Reply to author
Forward
0 new messages