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.

I created two forms. Import Campo dinamico

  1. Hello, David
    I created two forms.
    In the 1st form, the client 01 filled a text field with the number of your MOBILE. Ex: 6185529888
    And in another text field filled him with the plate of your car. Ex: JFX5890
    ..............................
    How do I, as the Client 2 is complete the form 2, he can find a field of "Drop Down" or "Multi Select" your mobile number or license plate.

    How do I import this data to insides of these fields.

    What should I do?
    Write some code into the field?
    Inside the "CSS Class Name"?
    Mark "Allow field to be populated dynamically"
    In Aba directory. I have to mark something?

    I hope your help.

    Edereço the 1st Form
    http://meucondominiolegal.com.br/123/?page_id=1297

    Edereço the 2nd Form
    http://meucondominiolegal.com.br/123/?page_id=1287
    thank you
    Edson

    Posted 11 years ago on Friday November 23, 2012 | Permalink
  2. It sounds like in form #2, you want to populate two different drop downs with all the values which were submitted by form #1. Is that accurate?

    Posted 11 years ago on Monday November 26, 2012 | Permalink
  3. Yes è that.
    And also how do I change my profile asap my photo.
    thank you
    Edson

    Posted 11 years ago on Monday November 26, 2012 | Permalink
  4. Yes it is
    I need you to right field in form 2 DROP Down the offer that was filled by users of a field of the form 1
    thank you

    Posted 11 years ago on Monday November 26, 2012 | Permalink
  5. Thank you for the speed of their response. I'm here all day waiting for a response.

    Posted 11 years ago on Monday November 26, 2012 | Permalink
  6. Your profile photo here comes from gravatar.com - register for an account there with the same email address you used here and the picture will appear here.

    Posted 11 years ago on Tuesday November 27, 2012 | Permalink
  7. You can populate a drop down in form two using the gform_pre_render filter.

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

    To get the values from the fields in form 1, you are going to have to loop through all the entries from that form, and extract the values from the specific fields you need. There are several ways to do this using built in Gravity Forms methods. Here is one:

    [php]
    // $all_leads will be an array of leads from one specific form
    $all_leads = RGFormsModel::get_leads($form_id);

    Then you would loop through all leads from form 1, and extract the values from the fields you're interested in, to populate the drop downs in form two.

    Posted 11 years ago on Tuesday November 27, 2012 | Permalink
  8. Please forgive me my lack of knowledge. More where I put (paste) this code that you showed me.
    1
    / / $ All_leads will be an array of connections from a specific form
    2
    $ All_leads RGFormsModel :: = get_leads ($ form_id);

    thank you
    Edson

    Posted 11 years ago on Tuesday November 27, 2012 | Permalink
  9. The code I posted will go inside a function you create. That function will go in your theme's functions.php. The code I posted is not a complete solution but a pointer on how to get the values. You will need to write a function and get all your values with that line, then hook your function to the gform_pre_render filter. It will require a bit of PHP code to accomplish what you want to do.

    Posted 11 years ago on Thursday November 29, 2012 | Permalink