You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the following modal dialog which display a modal form.
This form will first receive some data from an ajax call where will be possible to enter some other data.
I am using Laravel 5 which validate the form and returns an error to the form in case the validation fails.
So in this case I do not want the form to close untill the user will make the needd corrections and the validation will pass.
I am using bootbox version 4.3.0
Here is the code for my modal form:
In the example below I leave the 'paid_at' field empty and saving the form I will get a response error
$.ajax({
url: '/admin/summary/ajax_payment/'+invoice_id,
type: 'POST',
dataType: 'json',
data: {_token: token, invoiceId: invoice_id},
})
.done(function(data) {
var result = data;
bootbox.dialog({
title: "Enter the payment.",
message:
You need to put the return false statement in the initial callback, not the callback invoked by the AJAX request. You'll then have to manually hide the dialog in the AJAX callback if you determine it to be successful.
I am using the following modal dialog which display a modal form.
This form will first receive some data from an ajax call where will be possible to enter some other data.
I am using Laravel 5 which validate the form and returns an error to the form in case the validation fails.
So in this case I do not want the form to close untill the user will make the needd corrections and the validation will pass.
I am using bootbox version 4.3.0
Here is the code for my modal form:
In the example below I leave the 'paid_at' field empty and saving the form I will get a response error
$.ajax({
url: '/admin/summary/ajax_payment/'+invoice_id,
type: 'POST',
dataType: 'json',
data: {_token: token, invoiceId: invoice_id},
})
.done(function(data) {
var result = data;
bootbox.dialog({
title: "Enter the payment.",
message:
Hoopely someone can help me with this.
Thank you
Cheers
Franco
The text was updated successfully, but these errors were encountered: