• Resolved leomoss

    (@leomoss)


    Hello, im doing a simple RATE on a kiosk tablet, i need to hide te submit button and when users pick and option automatically submit.
    Can be done?

    Thx in advance

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.

    Thread Starter leomoss

    (@leomoss)

    It worked like a charm!!!

    Thx for your help @aakash8

    Plugin Support Jair – WPMU DEV Support

    (@wpmudevsupport15)

    Hi @leomoss,

    We are happy to hear that the issue has been resolved.
    Please let us know in case you need further help.

    Kind regards,
    Zafer

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Submit form on click’ is closed to new replies.