Highlighted

How to highlight text or make a check mark another color?

Avatar

Guest

30-06-2008

I'm trying to make a bunch of forms for my job and am running into some frustrating things.



I would like to make the check marks different colors when someone checks a box as well as possibly highlight or change the color of the text and am hitting a wall. I've tried the font section, the xml code, etc and nothing. I even asked tech support and they don't know?!?!?!



I know it can be done because we use a secure form that does it all the time, but I can't copy it or look at how they did it. It was created by another dept and no one knows. I didn't think this was going to be this difficult.



Any help would be greatly appreciated. Thanks 🙂

Replies

pguerett

30-06-2008

I found a way to do this by using some acroform script in the xfa form. You could put this on the enter event of the checkbox. Note that it is Javascript.



//get the doc object

var oDoc = event.target;

//now get the acroform field

var f = oDoc.getField("form1[0].Page1[0].CheckBox1[0]");

//set the color of the check char to red

f.textColor = color.red;
Highlighted

Avatar

Guest

09-07-2008

That didn't work for me, but thanks for trying. 🙂 This really shouldn't be this difficult I would think. Maybe the next version will be easier 🙂