We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18913
    • 654 Posts
    Hi,
    I'm using FormIt on a page which has parameters passed on the URL. If FormIt finds an invalid field in the form being submitted, it reloads the page, but the URL parameters are no longer available.

    Is there a flag or switch (or something else obvious) that I am missing that would put these parameters back on the URL? They are needed because there is a snippet that runs first, creating the form to be submitted based on a parameter passed on the URL.

    Thanks in advance,
    Matt
      • 38705
      • 101 Posts
      Hi Matt,

      Same problem here.
      Did you solve your problem yet?

      In my case i start my form and based on $_GET['eventid'] some information is retrieved with xpdo from a db-table, also this $_GET is passed as a value into a inputfield.
      However, if the user makes a mistake and the form is not validated the page reloads without the $_GET['eventid'] and thus not retrieving the info from the db and not filling the field in the form.

      Any ideas?
        Addict since 2012....
        • 14372
        • 49 Posts
        Hello guys ...

        Pass the parameter in the form action ... like this.

        <form action="[[~[[*id]]]]?param=[[+paramValue]]" method="POST">