We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14162
    • 67 Posts
    I am passing a field value to my FormIt form using a query string
    http://www.site.com/form?id=x
    This displays some options for download.

    Trouble is, if the form is not completed fully, it refreshes to show the error messages but returns to the base url
    http://www.site.com/form
    thus breaking my query string and the download options disappear.

    Does anyone know how to solve this? Thanks!
      • 14162
      • 67 Posts
      Solved this. Instead of using
      <form action="[[~[[*id]]]]" method="post">
      , i’ve used
      <form action="[[~[[*id]]]]?id=[[!urlsnipID]]" method="post">
      to keep the id=x in the URL string.

      The urlsnipID snippet simply extracts the id=x from the original URL query string.