Hi, this is a comment.
To get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard.
Commenter avatars come from Gravatar.
document.addEventListener("click", function(e){
if(e.target.classList.contains("yes-btn") || e.target.classList.contains("no-btn")){
// find the current form
const form = e.target.closest(".forminator-custom-form");
// find next button inside this form
const nextBtn = form.querySelector(".forminator-button-next");
// find submit button
const submitBtn = form.querySelector(".forminator-button-submit");
// if next exists -> go next
if(nextBtn){
nextBtn.click();
return;
}
// if no next -> submit form
if(submitBtn){
submitBtn.click();
}
}
});
Hi, this is a comment.
To get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard.
Commenter avatars come from Gravatar.