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.

default value for Address fields

  1. edmire
    Member

    I saw another user posted a similar question earlier and the suggested workaround was to use jQuery. For me, I'm using a GF to allow users to edit their posts (instead of the WP admin interface). When someone opens a post for edit, I need to display the previously entered information. For all the other fields, I'm using the "defaultValue" property. For the Address fields, however, it sounds like I'm out of luck. For now, I can probably figure out a way to use jQuery to workaround it but it would be great to see the ability to set the default values for the Address fields become available in a future release. Thanks!

    Posted 13 years ago on Sunday January 2, 2011 | Permalink
  2. If you are pre-populating a form you shouldn't be using the defaultValue property, you should configure the field to be populated dynamically and then use either the query string or PHP to pre-populate the field using the parameter name you configure for each field.

    Here is a post that discusses how to pre-populate a field dynamically with a value. This example popules a single field. You would apply the same thing to all the fields you want to populate, including the Address field.

    http://forum.gravityhelp.com/topic/pre-populate-form-with-user-data#post-13628

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