Skip to Content
0
Aug 22, 2023 at 09:59 AM

How to colorize adobe form table?

80 Views Last edit Aug 22, 2023 at 10:00 AM 2 rev

Hi guys, is it possible to colorize adobe form table, deppending on values inside?
I've try to do theese, but it's doesn't work.
Here i've got an field "NCHECK", and i try to change color if it equals 'X'.So why it doesn't work and how to made it right?

Also if i try to code like this:

 var ptr = xfa.resolveNode("Page1.NewHeader.TABLE.DATA[index].NCHECK")
  .rawValue;
if (ptr == "X"){
    xfa.resolveNode("Page1.NewHeader.TABLE.DATA[index].NCHECK")
    .fillColor = "150,130,33";
  }

index - is index with 'X'(if to see pdf file). And it works. SO how to do it with all the table?

image.png

Attachments

image.png (150.1 kB)