I can change the color to red, but the text is still faded?
If that's not possible, I would at least like to get the order of checkbox fields to show up as: Off/On/Neutral (Blank checkbox, Checkmark, Cross).
CURRENT CODE:
var vName = this.somExpression;
var fieldObj = xfa.resolveNode(vName + ".ui.#checkButton");
var myTick = event.target.getField("form1.page1.CheckBox1");
if (this.rawValue == 1)
{
myTick.textColor = color.black;
fieldObj.mark = "check";
}
else if (this.rawValue == 2)
{
myTick.textColor = color.black;
fieldObj.mark = "cross";
}
else
{
myTick.textColor = color.black;
fieldObj.mark = "cross";
}
Views
Replies
Total Likes
Hi,
the way you can modify the check marks is limited.
You can change the color, but for the neutral value the color is always pallid.
To change the check marks symbols you can use a script in the click event.
; This is FormCalc not JavaScript
; Change the check marks of a checkbutton object
if ($ eq 0) then
$.ui.oneOfChild.mark = "check" ;off
elseif ($ eq 1) then
$.ui.oneOfChild.mark = "check" ;on
else
$.ui.oneOfChild.mark = "cross" ;neutral
endif
Views
Replies
Total Likes