After submit page refreshed
Closed this issue · 2 comments
sbala69gmail commented
Hi,
I am using your repository, and after submit the form page is refreshed and model is hide.
But you show a sample has not refreshed a page. it shows the validation error.
Could you share a sample code for review?
my code
<form class="bootstrap-modal-form" method="post" action="/find" id="form_data">
{{ csrf_field() }}
<div class="form-group">
<label for="exampleInputEmail1">Email address</label>
<input type="name" class="form-control" id="exampleInputEmail1" placeholder="name">
</div>
<button type="submit" class="btn btn-default">Submit</button>
</form>
<button type="button" class="btn btn-primary btn-lg bootstrap-modal-form-open" data-toggle="modal" data-target="#myModal">
Launch demo modal
</button>
<script src="{{ URL::asset('/')}}vendor/laravel-bootstrap-modal-form/src/laravel-bootstrap-modal-form.js"></script>
Thanks.
mgralikowski commented
You have an error somewhere, script is not loaded or simply there is no any errors from controller so page is refreshed, check browser console first.
sbala69gmail commented
Ya. It's Run.
Page refresh after success message received.