Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Pulling validation pattern from XML schema in LCD

Avatar

Level 1

Hi team,

We have deisgned a fillable PDF form uding Live Cycle Designer ES2.

The form contains fields of different data types.

We have created a data connection on the form (using LCD) to bind it to a XML Schema

The XML schema has different types of validations for different data types.

When we treid to bind the XML schema to PDF form using LCD, most of the validations were pulled in. Example, numeric lenghth check, string length check, minoccurs , maxoccurs

But few validations were not pulled from Schema like Pattern validations on string.

Please guide us on how to achieve this using LiveCycle Designer ES2.

Cheers,

Kavi

1 Reply

Avatar

Level 10

Hi Kavi,

The pattern from the XML Schema can not be automatically copied across, I assume because of the differences in the XML Schema pattern regex and a JavaScript regex.  If you did use a compatible subset I you could write a macro to add the pattern to the validation event.  One difference is a XML Schema pattern always assumes a ^  and $ to match the beginning and end.  Have you seen this document http://partners.adobe.com/public/developer/en/livecycle/lc_designer_XML_schemas.pdf,

Regards

Bruce