Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #586559

    We like the clean look of the enfold contact forms. We have them set up as optin forms throughout our site. We want to send the form data to our list in Aweber. We have set up a Zapier integration to do this and the concept works. However, the output or form data sent by the enfold contact form is not separated by the individual form data fields, it is sent as a string of data. This makes it difficult to map the data fields of our forms in enfold to the data fields of our Aweber subscriber list. The ’email field’ info is sent by enfold as a separate entry, and there is a separate name field sent as well, but it just has the email address again, not the name. Is there something we can do to have enfold send the contact form data fields as separate pieces of data so they can be mapped to a third party list? I’ve included a screenshot for you to see what zapier sees as the output.

    #587255

    Hi drwildwave!

    Enfold works out of the box only with mailchimp at the moment.

    Please use the steps provided in this link to integrate the aweber to your wordpress site.

    https://help.aweber.com/hc/en-us/articles/204027976-How-Do-I-Use-AWeber-s-Webform-Widget-For-Wordpress-

    Best regards,
    Vinay Kashyap

    #587345

    Hi Vinnie,

    Thanks for the suggestion. We considered that solution but found so many terrible reviews we decided it probably wasn’t a good way to go about it.

    Using a Zapier integration works great if we could just get enfold to post field data as separate pieces of info, not combined in a string. We’ve already successfully created subscribers to our Aweber list with the only separate field data enfold posts- the email field. We need the other fields in our enfold contact form posted separately so we can map them to the fields in our Aweber list.

    Where would we find the contact form post function in Enfold? Maybe we can tweak it ourselves. Thanks!

    • This reply was modified 8 years, 8 months ago by drwildwave.
    #587884

    I’m thinking we should be able to modify how enfold posts the contact form data. If you can point me to where that functionality is in the theme that would save me some time.

    We’ve already created subscribers to our Aweber list from Enfold contact forms using Zapier but need to tell Enfold to post all form data as separate entries, not combined into one data string.

    Thanks Much!

    #588709

    Still hoping someone from Enfold can point me in the right direction as to what file the Enfold Contact form code is in. We want to tweak it so it posts the data from each form field as a separate item so it can be mapped.

    Thanks!

    #590168

    Hi!

    I’m not sure what you’re trying to do here but you can find the contact form generator inside the framework > php folder. Look for the class-form-generator.php file. If you want to know where the contact form shortcode resides, go to the config-templatebuilder > avia-shortcodes folder.

    Best regards,
    Ismael

    #590321

    Thanks Ismael!

    What we’re doing is sending the Enfold contact form data to a third party
    autoresponder. In order to use that data to subscribe to this third party
    list, we need the fields to be posted as separate, mappable pieces of
    data. What Enfold currently posts is a string of all the fields together,
    not separate mappable fields. So we need to tweak how enfold is sending the
    form field data. i.e. Name, Email, Phone,

    Out of the box, Enfold sends the email address as a separate entry, but all
    other fields, the name and phone for example are sent in the same entry
    i.e: name, XXX-XXX-XXXX. In order to enter this data into the fields of a
    third party list, the name and phone data need to be separated.

    Is there an easy way to do this?

    Thanks!

    Phil

    • This reply was modified 8 years, 8 months ago by drwildwave.
    #592482

    Hey!

    I’m sorry but I’m not familiar with Zapier or how it works but in order to modify the $_POST value of the form, you have to disable the default ajax form script. Add this in the functions.php file:

    add_filter('avf_ajax_form_class', 'avf_ajax_form_class_mod', 50, 3);
    function avf_ajax_form_class_mod($class, $formID, $form_params) {
    	$class = 'avia-disable-default-ajax';
    	return $class;
    }

    Create your own form action file (ex: action.php):

    http://www.w3schools.com/php/php_forms.asp
    http://php.net/manual/en/tutorial.forms.php

    Again, you can call the new file in the function.php:

    add_filter('avia_contact_form_args', 'avia_contact_form_args_mod', 10, 2);
    function avia_contact_form_args_mod($form_args, $post_id){
    	$form_args['action'] = 'ACTION FILE URI HERE';
    	return $form_args;
    }

    In the action file, you can modify the $_POST value but I’m not sure how you can relay it back to the Zapier platform. Please ask their support team for more info.

    Regards,
    Ismael

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.