Expand my Community achievements bar.

SOLVED

Digital Signature Field-How to disable until all required fields are valid?

Avatar

Former Community Member

I have a document with several required fields however the user can sign the form regardless if these fields are valid.  Is there an option within LiveCycle to control this, ie Signature field isn’t valid until all mandatory fields are true?  I’m thinking this might consist of additional JavaScript. However, I’d like to get some advice from others with more expertise.

Thanks,
Andy

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi Andy,

Here is a sample: https://acrobat.com/#d=rm5V4y7ANBcmZTsrcXxp1w

It uses two functions execValidate(), which validates the form and returns true is the form is valid and false if there are errors. The preSign event has access to the cancelAction property, so if there are errors, the cancelAction is set to true.

I have also used the new Form Validation features in LC Designer ES2 to group the error messages.

Good luck,

Niall

View solution in original post

4 Replies

Avatar

Correct answer by
Level 10

Hi Andy,

Here is a sample: https://acrobat.com/#d=rm5V4y7ANBcmZTsrcXxp1w

It uses two functions execValidate(), which validates the form and returns true is the form is valid and false if there are errors. The preSign event has access to the cancelAction property, so if there are errors, the cancelAction is set to true.

I have also used the new Form Validation features in LC Designer ES2 to group the error messages.

Good luck,

Niall

Avatar

Level 1

Sorry to revive a really old post but I'm trying to do the same thing and can't seem to get to your sample. Can you provide the javascript code used for this or the sample document with a fresh link?

Avatar

Level 1

What was the solution? I can't figured it out an the sample link above doesn't open.