Boostrap class for valid fields


I customize the form embed code by adding some Boostrap class for fields on creation time (using onFormReady) and errorClass property

  errorClass: 'form-control form-control-danger',
  errorMessageClass: 'form-text text-muted',
  submitButtonClass: 'btn btn-primary btn-block',
  onFormReady: function onFormReady($form, ctx) {

After the error gets corrected, its class reset to hs-input. Is there a good workaround?


I added this to your onFormReady event...

$form.find(".hs-input").on("change paste keyup", function(event) {

Not a great fix but it works.