Skip navigation
Currently Being Moderated

Changing the color of a check mark of a checkbox when rendered as static PDF

Dec 2, 2011 2:18 AM

Hi,

 

I am not sure if it's possible, but I am having trouble changing the check mark 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

 

 

Cheers,

Nelson

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points