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.

Populate Fields Dynamically

  1. Before I get flogged --- I know this topic has been covered before, and I've read more posts then I care to mention about this, however, it's not working for me.

    I'm using GForms in WP 2.9 and I have setup a test form that "should" allow dynamic population according to all the documentation I've read, but it's not.

    The form: http://www.zenmediastudios.com/contact-us/
    The field: "name"
    The attempt: http://www.zenmediastudios.com/contact-us?name=test

    All I get is the error page because that "page" doesn't exist, it's not reading it as a form and pre-populating the field.

    Am I that daft?

    Posted 14 years ago on Thursday March 25, 2010 | Permalink
  2. No, what you are doing should work.

    It appears for some reason your WordPress install is not treating it as a query string parameter. It looks like a permalink rewrite issue. That is why you are getting a 404 error message.

    Do you have any permalink settings you have done outside the standard WordPress permalink settings? Are you running on a Windows machine?

    Posted 14 years ago on Friday March 26, 2010 | Permalink
  3. <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    Posted 14 years ago on Friday March 26, 2010 | Permalink
  4. Try deleting your .htaccess file, then go to the WordPress Permalinks page and save that page again so that it updates. Then test the form address.

    Your site isn't treating the querystring parameters as querystring parameters, but rather a separate page which of course doesn't exist.

    Posted 14 years ago on Friday March 26, 2010 | Permalink
  5. ActiveFriends, it looks like the Apache mod_speling (yep, speling) module is running?

    Try this URL to see what I mean:
    http://www.zenmediastudios.com/conta

    Should redirect you to:
    http://www.zenmediastudios.com/contact-us/

    Can you try disabling it by adding this to the top of your .htaccess?

    <IfModule mod_speling.c>
    CheckSpelling on
    </IfModule>

    Then try accessing your contact form with the query string as you posted initially (although it might be better with a slash before the ?name=test), like http://www.zenmediastudios.com/contact-us/?name=test Worth a shot maybe?

    Posted 14 years ago on Friday March 26, 2010 | Permalink
  6. I was having the same issue. I changed the parameter to an uppercase letter i.e. "Name" and the query string passed into the form.

    I'm not sure why it made a difference but figured I would mention it anyway.

    Posted 14 years ago on Tuesday March 30, 2010 | Permalink
  7. Hey jmhelms,
    Thanks for your input, I have mod_speling running too and it works fine as long as i use an uppercase letter in the parameter.

    Thanks a ton!

    Posted 14 years ago on Friday August 13, 2010 | Permalink
  8. This fixed the error for me as well - thanks!

    Posted 13 years ago on Sunday October 2, 2011 | Permalink