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.

Allow forms to talk to one another

  1. This is a bit complex but I came across a nice to have feature with some forms I'm working on.

    Here is the set up
    PAGE 1 (FOR MY FRIENDS TO FILL OUT)
    Page 1 is geared towards one group of individuals (almost like a refer a friend program) This page is accessed by people I know and give a link to directly. On this particular page. I have a form with the following fields.
    NAME FIELD (first last)
    E-MAIL ADDRESS
    3 consecutive NAME FIELDS which are inputs for the user to input first and last names of friends
    1 Paragraph box for the user to input some more descriptions about their friends

    PAGE 2 ( CONTACT FORM FOR POTENTIAL CLIENTS)
    Page 2 is geared more towards a "hey I want to contact you about having some work done for my site... 'like a contact form' "
    NAME FIELD
    E-MAIL FIELD
    single line text WHO REFERRED YOU?
    Drop down of service category

    Now that you can understand the fields here is something I'd like to be able to do
    I want to have form 2 gather information from form1 mainly the NAME field from form1 I want to populate a drop down on form2

    Name field from form one should generated a list of NAMES in a drop down on form2 but not session dependent.

    Use case I have 15 friends fill out form 1 over the course of a day, a week later I have 5 people I don't know (potential clients) fill out form two and I want them to be able to choose from a drop down who referred them instead of making the user have to type that name into a text box. I want to make this field required as well as not have to second guess on the spelling of the persons name who referred them.

    I know we can make forms talk to one another but only on a session basis but I'd want to do some sort of interesting interaction based upon dynamically populating forms on the fly.

    I know this is probably something that wont happen right now but would very much like this feature

    Posted 13 years ago on Monday March 14, 2011 | Permalink
  2. So for clarification and to sum it up for one of our developers who can create a code snippet example...

    What you want is to create a dynamic drop down on Form 2 that is populated with values pulled from entry data from Form 1 (the Name field).

    Correct?

    Posted 13 years ago on Monday March 14, 2011 | Permalink
  3. yes that is correct! I have the pages live now
    http://www.routinechaos.com/free-ipad

    I want the name field from this page to populate a drop down on this page
    http://www.routinechaos.com/services
    currently the service page does not have a drop down list now because those features are not available. Ideally, I would like it to work that way maybe now it will be clear as to what I'm looking to do.

    thanks
    Josh

    Posted 13 years ago on Monday March 14, 2011 | Permalink
  4. Hi jtintner,

    Here is a hefty code snippet from a previous project I did that accomplished this: http://pastie.org/1671743

    There are three function going on. The first adds an item to the list of predefined options available to checkbox, radio, and drop down fields ( http://grab.by/9tfW ). In this example we add the "[Physicians: Dynamically Populated]" option.

    This option is then checked for by the populate_physicians() function. When found, that field is populated with a list of physician names (you can update this to be specific to your scenario) pulled from a separate form.

    The third function is called by the populate function and it is responsible for pulling the entries for the first form and making that data available for the second form.

    The code is heavily notated, but let me know if you have any questions.

    Posted 13 years ago on Monday March 14, 2011 | Permalink
  5. DOH! I cant see the screenshot but I think I get the just of whats going on here. Thanks so much for this! This feature will take my forms to that next level

    Posted 13 years ago on Monday March 14, 2011 | Permalink
  6. vixvii
    Member

    David, I am doing something similar - is there any chance of getting a screenshot of your forms?

    Posted 12 years ago on Saturday June 18, 2011 | Permalink