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.

Pre-populate with gform_field_value_$param on multi-page form not working

  1. sccr410
    Member

    http://www.ashwebdev.com/emsono/signup

    No matter what I try, I cannot get this to work on a multi-page form and using values from a previous page to dynamically populate fields on the current page. No matter how I code this, it simply isn't working.

    http://screencast.com/t/naQZuJK1gg

    And then I coded it another way and still no go.

    http://screencast.com/t/rOkRVYuh

    I have been pulling my hair out on this for 4 hours and am so baffled as to what I am doing wrong here.

    Posted 6 years ago on Tuesday November 6, 2012 | Permalink
  2. sccr410
    Member

    OK, here is a much more concise video now that I have had a night to calm down from frustration all day yesterday - http://screencast.com/t/i7EUU0LhiMr

    Posted 6 years ago on Tuesday November 6, 2012 | Permalink
  3. sccr410
    Member

    And I think I have figured the issue and I believe it is a bug.

    A dynamically populated field gets set only once - when the form first loads. This is fine for single page forms, but in my case with a multi-page form where values selected from the 2nd page dictate fields on the 3rd page this is broken. I should be able to take a value from page 2 and use that to define a value on page 3. Currently this is not possible with Gravity Forms.

    Posted 6 years ago on Tuesday November 6, 2012 | Permalink
  4. You're going about this the wrong way. You wouldn't use the gform_field_value hook to populate fields on a multi-page form if the value is coming from another field on the form. You would only use traditional dynamic population methods when you are populating a field value with data that is coming from outside the form.

    When populating a field value on a multi-page form with a value that is coming from another field on the same form, you have to go about things a different way. This is due to how these hooks work as well as how multi-page forms work.

    You would need to use the gform_pre_render hook to do what you are trying to do. You would need to use that hook to get the value from one field and populate the value of another field using that value.

    The gform_pre_render hook is documented here, there a few different examples of it's uses:

    http://www.gravityhelp.com/documentation/page/Gform_pre_render

    Posted 6 years ago on Tuesday November 6, 2012 | Permalink

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