• 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 [email protected] or [email protected]?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author John Huebner

    (@hube2)

    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

    (@crawlerwebsolutions)

    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

    (@hube2)

    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

    (@crawlerwebsolutions)

    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

    (@hube2)

    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

    (@crawlerwebsolutions)

    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

    (@hube2)

    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.