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 based on previous submission

  1. radioswan
    Member

    Just wondering if there is anyway of populating the fields dynamically based on a users previous submission?

    For example:
    I have two near identical forms - the first 20 fields are the same in both forms. If the user completes form 1, ideally if they bring up form 2 i would like to pre-populate the first 20 fields based on the data they entered in form 1.

    Would the gform_field_value_$parameter_name filter be worth exploring in this sort of scenario?

    Posted 13 years ago on Thursday April 28, 2011 | Permalink
  2. This can only be done as a customization using cookies. You would have to use the gform_post_submission hook with Form 1 to store the values of all the fields you want to pre-populate in Form 2 as a cookie.

    Then you have to write custom code using the gform_field_value$parameter_name hook to pre-populate those fields in Form 2 using the values you stored in the cookie.

    Posted 13 years ago on Thursday April 28, 2011 | Permalink