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.

Populating Dynamic Content

  1. I have a multi page gravity form,

    lets say I have drop down field with Option 1, Option 2 and Option 3 on page 1

    Now on page 2 there is a text area field.

    When I select
    option 1, i want the text area to be populated with the text "Text 1"
    option 2, i want the text area to be populated with the text "Text 2"
    option 3 i want the text area to be populated with the text "Text 3"

    How can I do this?

    Posted 11 years ago on Sunday February 24, 2013 | Permalink
  2. echoca
    Member

    I just read about this filter today and it sounds like it could help you.
    http://www.gravityhelp.com/documentation/page/Gform_pre_render

    Posted 11 years ago on Monday February 25, 2013 | Permalink
  3. I am looking in to more like a code snippet that can help me here. I am a novice at PHP, but once I get a piece of code, I can catch on from there...

    Posted 11 years ago on Monday February 25, 2013 | Permalink
  4. echoca
    Member

    I understand I'm in the same learning php shoes. But that link gave me a snippet to work from.

    Posted 11 years ago on Monday February 25, 2013 | Permalink
  5. On page two, you could have three different text areas with different default text, and use conditional logic to choose which one to display, based on the drop down selection that was made. Would that work?

    Posted 11 years ago on Tuesday February 26, 2013 | Permalink
  6. Hi Chris,

    I already thought of that. I would prefer a solution to hook it in to the same field name as I plan to pass parameters on submit to a form parsing script for another platform

    Posted 11 years ago on Tuesday February 26, 2013 | Permalink
  7. There is no Gravity Forms hook to accomplish that in the same form. To take one piece of entered data and copy it to another form field, you can use jQuery. Something like this http://stackoverflow.com/a/4878348

    Posted 11 years ago on Wednesday February 27, 2013 | Permalink