We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!

Answered formit submit

    • 43592
    • 97 Posts
    Dear forum,

    I'm experiencing a funny situation on Formit:

    I've a page from where I submit a hidden field into a formit-form, into a text-field.

    When the Form on the page before Formit is submitted, the Formit form appears correctly, but tries to submit the Formit form, too.
    I see it because I get the required field validation messages, even the Formit submit button isnt pressed.

    How can I stop that?

    The form which submits the variable before the Formit form is very simple (id 36 = formit Form)

        <form action="index.php?id=36" method="post">
                  <input type="hidden" name="zimmer" id="zimmer" value="[[+tv.Zimmer_Ueberschrift]]">
                  <input type="submit" class="btn btn-default" value="• Anfrage"></form>
    


    Any ideas?

    This question has been answered by Bruno17. See the first response.

    • discuss.answer
      • 4172
      • 5,888 Posts
      make use of the submitVar - property

      https://rtfm.modx.com/extras/revo/formit
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 43592
        • 97 Posts
        Thank you, Bruno! That is the solution.