Title: Issue Setting Up
Last modified: January 18, 2017

---

# Issue Setting Up

 *  [CrawlerWebSolutions](https://wordpress.org/support/users/crawlerwebsolutions/)
 * (@crawlerwebsolutions)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/issue-setting-up/)
 * Good Afternoon,
    I have an car dealership website w/ multiple dealerships active
   on the website. The theme and inventory plugin allow me to distinguish where 
   a form submission is sent to based on location but unfortunately their plugin
   doesn’t allow me to submit it in ADF/XML format which I need which is why I use
   CF7.
 * My question is the plugin has this shortcode in CF7 that allows me to determine
   the location which is [_location]. Can I use this plugin and based on the [_location]
   of where the vehicle is, send the form submission to [dealer1@examplecrm.com](https://wordpress.org/support/topic/issue-setting-up/dealer1@examplecrm.com?output_format=md)
   or [dealer2@examplecrm.com](https://wordpress.org/support/topic/issue-setting-up/dealer2@examplecrm.com?output_format=md)?

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [John Huebner](https://wordpress.org/support/users/hube2/)
 * (@hube2)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/issue-setting-up/#post-8671802)
 * Does the shortcode [_location] create a field in the form?
 * If it does then yes, please see the FAQ. You would supply the name of this field
   in `dynamic-mail-to-fields`
 *  Thread Starter [CrawlerWebSolutions](https://wordpress.org/support/users/crawlerwebsolutions/)
 * (@crawlerwebsolutions)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/issue-setting-up/#post-8671825)
 * Its not a field that someone can select and choose a location. So the idea is
   when a customer is viewing a vehicle, the vehicle they are on has a location 
   field. When creating a form in CF7, I set up whatever form fields I want, such
   as name, email address, phone number, etc. The information sent from the form
   in the “Mail” tab displays the information from the form, plus whatever information
   I choose to include in the message sent to my crm such as vehicle year, make,
   model, location, etc. The vehicle information is broken down into shortcodes 
   such as [_location].
 * So to answer your question, I would probably assume its no, since the “customer”
   doesn’t select the location when filling out the form.
 *  Plugin Author [John Huebner](https://wordpress.org/support/users/hube2/)
 * (@hube2)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/issue-setting-up/#post-8671837)
 * A hidden field will work, it should be a hidden field.
 * Any field that is submitted in the $_POST array when the form is submitted will
   work, you just need to know what the form field name is.
 *  Thread Starter [CrawlerWebSolutions](https://wordpress.org/support/users/crawlerwebsolutions/)
 * (@crawlerwebsolutions)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/issue-setting-up/#post-8671877)
 * John I appreciate you taking the time to review this issue. The question I would
   ask is, would you be able to assist me w/ the set up of this. I have basic forms
   set up in CF7.
 * <label> First Name*:
    [text* FirstName] </label>
 * <label> Last Name*:
    [text* LastName] </label>
 * <label> Your Email*:
    [email* Email] </label>
 * <label> Phone:
    [tel Phone] </label>
 * <label>Preferred Contact*:
    [select* PreferredContact “Email” “Phone”]</label
   >
 * <label> Questions/Comments:
    [textarea your-message] </label>
 * [submit “Send”]
    *Required
 * I have this plugin installed as well as the simple hidden field plugin you created
   as well. I am honestly just concerned I am not doing this correctly.
 *  Plugin Author [John Huebner](https://wordpress.org/support/users/hube2/)
 * (@hube2)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/issue-setting-up/#post-8671904)
 * This plugin will only work if the other shortcode you mentioned adds some type
   of field to be submitted. I don’t see the sortcode in the form code you posted.
 * You need to examine the HTML of the page where the form is displayed. Look at
   the fields in the form and see if there is a field that can be used. If it’s 
   adding fields they will most likely be hidden fields and the only way you’ll 
   see them is to look at the source of the page.
 * I don’t know what [_location] does, so I’m not really sure how to help you there.
 *  Thread Starter [CrawlerWebSolutions](https://wordpress.org/support/users/crawlerwebsolutions/)
 * (@crawlerwebsolutions)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/issue-setting-up/#post-8671977)
 * Below is the code to explain how the inventory plugin does it.
 * To clarify, each vehicle has information broken down into what’s called listing
   categories. One of these categories is Location. So what appears to be happening
   is when a CF7 form is submitted, the information is posted including the listing
   categories. In the code below it appears that it is the listing_ajax.listing_id
   field.
 *     ```
       jQuery.ajax({
                           type : "post",
                           url : listing_ajax.ajaxurl,
                           data : { action: "request_info", first_name: first_name, last_name: last_name, contact_method: contact_method, email: email, phone: phone, id: listing_ajax.listing_id }
       ```
   
 *  Plugin Author [John Huebner](https://wordpress.org/support/users/hube2/)
 * (@hube2)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/issue-setting-up/#post-8673555)
 * Sorry, this really does not help me to understand what’s going on or give me 
   any idea to help you figure it out.
 * The best I can offer is that this plugin can do what you want if there is a field
   submitted when completing the form that has some information in it that you can
   use to use in deciding where to send the email.
 * You will need to figure out what fields are submitted by the form.
 * You should be able to see all the fields that will be submitted by inspecting
   the code of the page using the inspection tool available in most browsers. If
   that fails to help you and if I was trying to figure this out I would turn of
   JavaScript submission for CF7 and I’d temporarily add code that looked something
   like this to the top of my page template.
 *     ```
       echo '<pre>'; print_r($_POST); die;
       ```
   
 * and then I’d submit the form to see what was submitted.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Issue Setting Up’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/contact-form-7-dynamic-mail-to.svg)
 * [Dynamic Recipient for Contact Form 7](https://wordpress.org/plugins/contact-form-7-dynamic-mail-to/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7-dynamic-mail-to/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7-dynamic-mail-to/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7-dynamic-mail-to/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7-dynamic-mail-to/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7-dynamic-mail-to/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [John Huebner](https://wordpress.org/support/users/hube2/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/issue-setting-up/#post-8673555)
 * Status: not resolved