Validation Error Message Box - How to Move from Top to Bottom of Form

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.

image

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);
});
});

3 Likes