vendredi 25 mai 2018

1000hz Bootstrap validator not submit when validate triggered - Laravel

Bootstrap validator form not submit after all validate error is corrected, but if no validation is triggered, the form can be submit, here is my form:

{!! Form::open(["method" => "POST", "action" => "user\UserWalletController@transfer", "id" => "transferModal", "class" => "modal fade", "aria-labelledby" => "transferModal", "aria-hidden" => "true"]) !!}
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
        <h5 class="modal-title colorOrange1">Transfer</h5>
      </div>
      <div class="modal-body">
        ...
        <div class="row">
          <div class="col-xs-12">
            <div class="form-group">
              <div class="checkbox checkbox-primary">
                {!! Form::checkbox("agreeTermsOfUse", null, null, ["id" => "termsOfUse", "data-error" => "You must agree Terms of Use", "required"]) !!}
                <label for="termsOfUse"> I agree with Terms Of Use </label>
                <div class="help-block with-errors"></div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-info" data-dismiss="modal">Close</button>
        <button type="submit" id="submitTransferDetails" class="btn bgTeal1" name="operationBtn" value="transferFund">Submit</button>
      </div>
    </div>
    <!-- /.modal-content -->
  </div>
{!! Form::close() !!}

here is my form validate function is JS:

$('#transferModal').validator();

i have tested several time and the submit button name is not "submit" also, but it just not submit at all.

What is the problem and how can i solve it??



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2sbefq1
via IFTTT

Aucun commentaire:

Enregistrer un commentaire