diff --git a/static/js/app.js b/static/js/app.js index ad6adec..67f5486 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -148,6 +148,11 @@ function validate_form(form, keep_empty = false) { data[$(checkbox).attr("name")] = $(checkbox).is(":checked"); } }); + form.find(".form-switch input[type=checkbox]").each(function (idx, checkbox) { + if ($(checkbox).attr("name")) { + data[$(checkbox).attr("name")] = $(checkbox).is(":checked"); + } + }); console.log(data); return data; }