Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Checking checkboxes from XML data (Designer and LiveCycle Output)

Avatar

Former Community Member

Hello!

I have over 3 thousand XML files containing information to be converted into PDF files. Among the info I have fields like:

 

          <REASON1>X</REASON1>

  <REASON2></REASON2>

So on the XDP fields this translates as checkboxes.

 

So I tried this script to mark the correspondent checkboxes in the resulting PDF:

if (xfa.resolveNode("REASON1").rawValue == "X") {

          this.rawValue = 1;

}

Well, it doesn't work.

The checkbox is identified as REASON1 in the Binding tab, everything looks correct to me.

Please, what am I doing wrong?

Thank you for any hints!

 

Marcos

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi Marcos,

Just a suggestion - would it help if you changed the On value of the checkbox to X in LC Designer, Object > Binding palette? Instead of 1.

Niall

View solution in original post

3 Replies

Avatar

Correct answer by
Level 10

Hi Marcos,

Just a suggestion - would it help if you changed the On value of the checkbox to X in LC Designer, Object > Binding palette? Instead of 1.

Niall

Avatar

Former Community Member

Hi Niall,

Would you believe if I told you I had already tried this and it hadn't worked?

After your suggestion, I tried again. And guess, it worked.

I had probably missed something ...

Thank you!!!

Marcos

Avatar

Level 10

ahh, the joys!! Have a good weekend Marcos!!