Expand my Community achievements bar.

Field validation in PDF forms

Avatar

Former Community Member

Hi everyone,

I am trying to create PDF forms with Livecycle Designer ES (ver 8).

These forms are intended only for printing, there is no data collect or link.

For some of the fields the users have to fill in, I have defined validation format.

I noticed that when the data entered in the field doesn't match the pattern, the user get an error message but the data is displayed anyway in the field and the user still able to click OK and proceed with filling in the form.

Does anybody knows how to check data and disable displaying it in the field when it does'nt match the validity pattern?

Any help is welcome, thank you.

1 Reply

Avatar

Level 10

You can write script in the Validate event of the field to check for the validity of the format and if does not match then you can set the rawValue to empty ("")

Thanks

Srini