2 Replies Latest reply on Aug 12, 2010 11:01 AM by cmongimmeabreak

    How do I change the check mark color?

    cmongimmeabreak

      The default color is black for selected check marks.  How do I change the color to blue?  I want the selected radio buttons and check boxes to stand out from the rest of the form.  All of the other date entry in the form I have created is blue.  It seems like there should be an easy solution but I haven't been able to find it.  I am not a computer geek so I just need to know what script to enter in the "XML Source" tab in LiveCycle and where it needs to go in relation to the existing radio button (or check box) script.

       

      Thank you!

        • 1. Re: How do I change the check mark color?
          pguerett Level 6

          Do not enter or change the source in the XML tab unless you really know what you are doing. There is a scripting editor provided so you can make these types of additions/changes. HIt Ctrl-Shift-F5 to activate the scripting editor (if it is not alraedy) or you can activate it under the Window menu. Now you need to highlight the object you want to affect (the checkbox). Then you need to choose an event you want to use for the object. In our case we want the Initialize event. This can be chosen from the Show dropdown (top left of the editor). Then at th eright side of the editor choose the language as Javascript and the RunAt to be client. Now you are ready to add your code. There  is no provision in the Designer UI to change the checkmark

          color so we have to do it in a weird way. These commands will do it for you:

           

          var

           

          f = event.target.getField("form1.Page1.CheckBox1")

          f.textColor

          = color.blue

           

          The fieldname in quotes on the 1st line must be the path from the root to your checkbox object that you want to effect. Note that this is the AcroForm way of changing this and should only be used when absolutely neccessary.

           

          Paul

          • 2. Re: How do I change the check mark color?
            cmongimmeabreak Level 1

            It works!  Thanks, Paul.