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.

Contact Form: Different email per Page

  1. cmccrone
    Member

    Hello,

    I have a website with professionals in 50+ different cities (one professional per city/page)

    What is the easiest way to create a contact form with a different email address for each city/page so that my customers can contact people in their city with GravityForms.

    Posted 12 years ago on Monday April 16, 2012 | Permalink
  2. I would try doing this with dynamic population on a radio or drop down field that is set to admin only. You could populate each of the options with the professionals name. Then pass in the data on those pages to populate the option accordingly.

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

    Then, in your notifications area for the form, you can setup routing that will go to the appropriate email based on each option.

    Posted 12 years ago on Monday April 16, 2012 | Permalink
  3. cmccrone
    Member

    Ok thank you!

    I see where this is going but haven't quite got it. I have been reading those dynamic/parameter pages on your site and I'm almost there.........I think.

    Example Pages:
    1) Example.com/California/Anaheim-Agent
    2) Example.com/California/San-Diego-Agent

    Example Agents:
    1) Anaheim
    - Name: Chris M
    - Email: Chris@AnaheimAgent.com

    2) San Diego
    - Name: Amy G
    - Email: Amy@SanDiegoAgent.com

    Now how would I make a form like this.....
    Name:
    Email:
    Message:

    .......get sent to the page related agent.
    1) Example.com/California/Anaheim-Agent
    2) Example.com/California/San-Diego-Agent

    Sorry about all the detail, just trying to make things a little more clear for me.

    Chris

    Posted 12 years ago on Monday April 16, 2012 | Permalink
  4. Your Form would be the 3 fields you have listed above, plus the Admin Only radio or drop down field that lists the names, in this instance, go ahead and just try it out with the two agents, you can always add more agents later if all goes well.

    On the Admin Only field, you want to set that to populate dynamically and in here put a parameter name, such as agent_name.

    Then, on your URL you could have:

    Example.com/California/Anaheim-Agent/?agent_name=ChrisM

    The query string parameter just has to match your value exactly. That should populate the admin only field. Now in your notification settings on your form, you should be able to set each email address for the two people here accordingly via the routing option.

    Posted 12 years ago on Monday April 16, 2012 | Permalink
  5. cmccrone
    Member

    Awesome. I understand the concept now. Thank you!

    Id rather not have the ?agent_name=ChrisM in the link.

    Im guessing the short code is best?

    MY FORM
    - First Name | Last Name
    - Email
    - Message (Paragraph Text)
    - Drop down for all my agent/city pages (admin only, Allow Populated Dynamically)
    - - - CHOICES - Label: San Diego Value: ChrisM@Example.com

    What do I add to my short code? Here is my current short code.
    [gravityform id="4" name="Contact This Organizer (San Diego, CA)" title="false" description="true"]

    ---------------------------

    Other than that, on the notifications page, under routing, how do I make it email ONLY that agent in that city? (one agent/city per page).

    Again thank you so much for your help.

    Chris

    Posted 12 years ago on Tuesday April 17, 2012 | Permalink
  6. I'd just use the name instead of email for the drop down value. In your short code you would put:

    [gravityform id="4" name="Contact This Organizer (San Diego, CA)" title="false" description="true" field_values="namehere"]

    Obviously the namehere would get replaced appropriately. In the routing you would select the drop down and then the agent and place their email.

    Posted 12 years ago on Tuesday April 17, 2012 | Permalink
  7. cmccrone
    Member

    Im doing something wrong.

    [gravityform id="4" name="Contact This Organizer (San Diego, CA)" title="false" description="true" field_values="name here"]

    ---- Regarding the above short code ----
    Field_Values: Is this supposed to say field_values or something else? Am i supposed to use the name of the field that I'm using (choices field)? or parameter name (city)?

    ---- My Choice Fields ----
    LABEL: San Diego
    VALUE: sandiego (is this correct?)

    ---- Populated Dynamically ----
    Allow field to be populated dynamically is checked

    PARAMETER NAME: city (is this correct?)

    Posted 12 years ago on Thursday April 19, 2012 | Permalink
  8. Can you send me a WP Admin login to rob@rocketgenius.com and reference this post so I can check it out.

    Posted 12 years ago on Thursday April 19, 2012 | Permalink
  9. Resolved via email.

    Posted 12 years ago on Thursday April 19, 2012 | Permalink

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