Submit form on click | WordPress.org

Hi @leomoss

This is possible with some custom code.

You can add this Javascript and CSS code wherever appropriate for your environment to accomplish this:

Javascript to click submit button once a rating is selected:

document.querySelectorAll('.forminator-radio-image').forEach(item => {
  item.addEventListener('click', event => {
      setTimeout(() => { document.querySelector('.forminator-button-submit').click(); }, 50);
    
  })
})

(Add <script></script> tags before and after if necessary)

CSS to hide the submit button:

#forminator-module-162 .forminator-button-submit {
    display: none;
}

You can Google search something like “How to add CSS to WordPress”/”How to add javascript to WordPress” if you need help understanding where these go.

Hope this helped.

It worked like a charm!!!

Thx for your help @aakash8

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer