jeudi 1 novembre 2018

Laravel js validation on Send button not in Save button in the form

I'm using laravel 5.6 and using JS Validator for client and server side validation. My problem is validation should only work when the form is submitted(Send). When form is saved, validation should not exist. Please help me to fix this issue.

My View as follows

    <div class="form-group row">
        <div class="col-md-11" align="right"><input type="submit" name="submit" class="btn btn-primary" value="Save" /></div>
        <div class="col-md-1" align="right"><input type="submit" name="submit" class="btn btn-success" value="Send" /></div>
    </div>

JS Validation

{!! JsValidator::formRequest('App\Http\Requests\FormValidation') !!}



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire