-
AuthorPosts
-
February 26, 2016 at 4:17 am #589552
Hello,
What could I add to my child theme functions.php file to make enfold post contact form field data as separate items so they can be mapped?
Right now, everything except the email address is posted as a comma separated, (or space separated ) string of data.February 29, 2016 at 10:49 pm #591175Hi!
Can you expand on what you’re trying to achieve? if you look at the file that handles the contact form (/framework/php/class-form-generator.php), you’ll note there are plenty of hooks you could use to retrieve/modify the data send via the form.
Cheers!
JosueMarch 1, 2016 at 4:13 am #591301Thanks Josue for your reply.
Here’s what I’m doing.
I’m using the submission of Enfold contact form to create a subscriber to my Aweber list.
I’ve already considered using the Aweber plugin but all that does is facilitate putting an Aweber form on the site.
I can do that without the plugin.
I’d rather use Enfolds contact form functionality because it looks more inline with the theme without extra work.
So, I have an optin form on my website created with Enfolds contact form functionality.
It has 3 fields: Name, Email, Phone.
As it stands now, when Enfold sends the data from the from it sends it like this:
Email: (Email address hidden if logged out)
And everything else in one string like this: (Email address hidden if logged out) , johndoe, phone number ( As one combined string).
Using Zapier to integrate with Aweber, I can map the (Email address hidden if logged out) ‘ to the (Email address hidden if logged out) field in the Aweber list because it is sent by Enfold as a separate piece of data.
I cannot map the ‘JohnD (Email address hidden if logged out) , John Doe, XXX-XXX-XXXX’ string because it’s posted as one string of data, not separate items.
I need them to be posted like this:
Email: (Email address hidden if logged out)
Name: John Doe
Phone: XXX-XXX-XXXX
Then, in addition to the email, I can select, or ‘map’ johndoe’ to the ‘name’ field of my Aweber list, and XXX-XXX-XXXX to the ‘phone number’ field in my Aweber list..
The integration works, with just the email so far, but I’d like to have the ‘name’ and ‘phone number’ fields for the new subscriber as well.
So I just need to tweak Enfold and tell it to post each entry, i.e. Name, Email, Phone Number, separately so I can ‘map’ them to the corresponding fields in the Aweber list and add them as a subscriber with all 3 pieces of information.I’m sure it’s probably an easy fix for someone that knows php.
Thanks for your help!!!
- This reply was modified 8 years, 9 months ago by drwildwave.
March 3, 2016 at 11:39 am #592567Hi!
Duplicate post. Continue here: https://kriesi.at/support/topic/enfold-contact-forms-output/
Regards,
Ismael -
AuthorPosts
- The topic ‘Enfold Contact Form Post Function’ is closed to new replies.