Avatar

Level 1

Thank you Bruce, With your help I was able to get it working for the Home Check box. However when I replicated the same for the Mail and Employer by changing the qualifier only it is giving me the following error

Generating PDF Document...

PDF generated successfully.

Generating PDF Document...

Script failed (language is formcalc; context is xfa[0].datasets[0].data[0].PersonAddress[0].)

script=AddressType=="Mail"

   Error: accessor ' AddressType' is unknown.

Malformed SOM expression:

$.PersonAddress.[AddressType=="Mail"].Address

   Error: accessor 'AddressType ' is unknown.

End of processing: Failure

Moreover when I remove the mail and employer reated it works for home. It seems like it does not like me using the same element for more than one fields.

Please assist.