Hello. I am using the django starter kit. I am having issues with the code base. Looking at the JS code it has the submit form commented out, however I can only get it to POST the data if I uncomment that part and remove the:
// Show message popup. For more info check the plugin"s official documentation: https://sweetalert2.github.io/
Swal.fire({
text: "You have successfully reset your password!",
icon: "success",
buttonsStyling: false,
confirmButtonText: "Ok, got it!",
customClass: {
confirmButton: "btn btn-primary"
}
}).then(function (result) {
if (result.isConfirmed) {
form.reset(); // reset form
passwordMeter.reset(); // reset password meter
//form.submit();
//form.submit(); // submit form
var redirectUrl = form.getAttribute("data-kt-redirect-url");
if (redirectUrl) {
location.href = redirectUrl;
}
}
});
},
//form.submit();
Hi Luke Hayes,
The code parts are just for the simulation. The actual form process needs to be customized. At the moment, we do not have an example for the form. In the future, we will include the form demos.
You can reuse the JS script to get started. form.submit() should submit the form data to the action URL set in the <form> tag.
Thanks