PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Can't Get Query String to Work

  1. I can't seem to get my query strings to work. I've got a product form with a drop down list of products. The user may select one item and hit submit. I then want a new form to open with the selected item passed from the first page to the second, along with new information fields to be completed. I have an Admin Label of "item" set on the first form. I've set the Confirmation to redirect to the second page and a Redirect Query String of item={item:3}.

    On the second form, I have a duplicate product field set. Under the advanced tab I have checked Allow Field to be Populated Dynamically and a Parameter Name of "item."

    Whenever I select an item on the first field, I get the same page reloaded with an error saying there was a problem with my submission... Except if I choose the last item in the drop down. If I choose and submit that one, I get redirected to a page with a 404 error. It's redirecting me to the second form page, bit its appending this to the URL: domain.com/second-form-page/%20%E2%80%8E?item=Other:value. Even if I fix the URL it redirects to the second form, but the product data isn't passed and showing in the form.

    What am I doing wrong?

    Posted 8 years ago on Saturday June 29, 2013 | Permalink
  2. Update: Got part of the problem corrected. The spaces and odd characters before the appended URL add-on was apparently caused by hidden odd characters in the domain listed on the redirect field. I cut and pasted the domain in, and the odd characters weren't visible, but I found them and fixed it.

    Now, the redirect only works if the last item in the drop down is selected. Anything else and the form just redirects back to form 1 and throws an error message.

    Suggestions?

    Posted 8 years ago on Sunday June 30, 2013 | Permalink
  3. Do you have a link to your form?

    Posted 8 years ago on Monday July 1, 2013 | Permalink
  4. Yes. http://www.tinaadamsconsulting.com/order for the order form and http://www.tinaadamsconsulting.com/payment for the payment form.

    Posted 8 years ago on Monday July 1, 2013 | Permalink
  5. Thanks, can you actually fill out a priority support request form and include a WP admin login for me so we can take a closer look at the two form setups? It will be much easier for the both of us in troubleshooting/corresponding.

    http://www.gravityhelp.com/priority-support/

    Posted 8 years ago on Monday July 1, 2013 | Permalink
  6. Doing it right now. Thanks.

    Posted 8 years ago on Monday July 1, 2013 | Permalink

This topic has been resolved and has been closed to new replies.