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.

Integrating GravityForms into current theme

  1. Question,

    If you click here - http://secure.agentauto.com/development/inventory/escalade-ext/
    You see on the left that I have a gravity form serving as the dealership contact from for this specific listing.

    If you click here - http://secure.agentauto.com/development/inventory/cts-v-sport-coupe/
    You can see on the left, that we have the same gravity form serving as a contact form for another dealership account as well.

    How can we tell the same gravity form to send the message to the correct dealer account based on the listing ownership?

    Posted 11 years ago on Wednesday October 10, 2012 | Permalink
  2. David Peralty

    You will want to create a hidden field in the Gravity Form that has the name of the listing dealer so that you can use notification routing to determine where the e-mail notification for the dealer goes. How you get that information into the hidden field is dependent on where it is currently stored.

    Posted 11 years ago on Wednesday October 10, 2012 | Permalink
  3. Could you elaborate further, as im clueless

    Posted 11 years ago on Wednesday October 10, 2012 | Permalink
  4. David Peralty

    Gravity Forms needs to know what dealer you want the details sent to. You have to determine how you want to give Gravity Forms that information.

    You can create a hidden field on your form, you can use PHP to make sure that field has the dealer name. In notifications, you can select Routing. In routing, you'll have the option to send e-mails to different addresses based on information held in a field.

    For example: if dealer = A then e-mail a@dealer.com. If dealer = B then e-mail b@dealer.com.

    Posted 11 years ago on Wednesday October 10, 2012 | Permalink
  5. Routing would be a pain becuase we have over 500 dealers on our current site, and plan to have over 3,000 in the next year, so that wouldnt be very managable. So, what about merge tags?

    Example, in the gravity form notification area, the notification is sent to {admin_email}. Could I change it to something like {author_email} reflecting the dealerships email which is setup originally as an author account?

    Posted 11 years ago on Wednesday October 10, 2012 | Permalink
  6. David Peralty

    Yes, but you still have to have some PHP push the e-mail address from the page to the form so that it can be used in the notification area. This means pulling the author e-mail address of a post that the form is embedded on.

    Posted 11 years ago on Wednesday October 10, 2012 | Permalink
  7. Can I pay someone here to help make this happen?

    Posted 11 years ago on Wednesday October 10, 2012 | Permalink
  8. David Peralty

    We have a Job Board where you can post such things:
    http://www.gravityhelp.com/forums/forum/job-board

    Also, sites like jobs.wordpress.net will have people that are talented and available to make this work for you. It shouldn't take long for an intermediate PHP developer familiar with what you are trying to do.

    They will need:
    http://www.gravityhelp.com/documentation/page/Gform_pre_render

    And they'll just need to figure out how to get the information from your posts/pages to be able to put into the hidden field for the form. (if it is in a custom field, it should be relatively easy).

    http://codex.wordpress.org/Custom_Fields

    Posted 11 years ago on Wednesday October 10, 2012 | Permalink