I have some validation rules built in for fields. So, when I click submit on a form, the error message pops up at the top. However, I want to move the validation/error from the top to the bottom of the form. How can I do this? I tried using JavaScript but it isn’t working.
Nevermind! This code works.
//change your view
$(document).on(“knack-view-render.view_xx”, function (event, view, data) {
Knack.$(#${view.key} form
).on(“submit”, function () {
setTimeout(() => {
if (Knack.$(“.kn-message.is-error”)) {
Knack.$(“.kn-submit”).after(Knack.$(“.kn-message.is-error”));
}
}, 1000);
});
});