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

Multiple errors on validation #171

Open emilorol opened 8 years ago

emilorol commented 8 years ago

Hi,

When I set the following:

validateFields : true,
errorClass : 'error',
errorMessageDraw : '<div class="alert alert-danger"><strong>Error:</strong> Please sign the document</div>',

Validation works, but it print the message multiple times on the screen as the user keeps clicking the submit button.

If I left the default configuration it does works too and it will show the message only once regardless of the number of times the user click the submit button.

Note: I am using bootstrap CSS/JS

Thank you

emilorol commented 8 years ago

screen shot 2016-01-21 at 5 26 19 pm

thomasjbradley commented 8 years ago

Maybe try changing the errorClass to alert?

emilorol commented 8 years ago

I am going to try that.