thread-pond / signature-pad

A jQuery plugin for assisting in the creation of an HTML5 canvas based signature pad. Records the drawn signature in JSON for later regeneration.
BSD 3-Clause "New" or "Revised" License
730 stars 290 forks source link

Is there a way to not always require a signature #168

Closed ghost closed 8 years ago

ghost commented 8 years ago

I am implementing this for a delivery system. The user has the option to sign(by drawing the signature) or they can just simply proceed to next step without a signature. Right now if no signature is signed, this JS give an error "Please sign the document", is there a way to turn this validation off?

thomasjbradley commented 8 years ago

Yep, there's an option called validateFields, that defaults to true. Change it to false and it should make the signature pad optional.

ghost commented 8 years ago

Thank you. I missed it while going through the documentation.