• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Mailchimp & Emailed Forms

Mailchimp & Emailed Forms 13 years 4 months ago #15542

  • tim16
  • tim16's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
I'm trying to create a form that can both contact us via email, and give the option to subscribe to a mailchimp newsletter. The newsletter has groups separated by location and interest group.

Following the mailchimp plugin tutorial It works great at subscribing visitors, and also manages to send an email to me with the inquiry details. However important details are missing. This is what the email looks like that I recieve.

{Name:caption}: {Name:value}

Your Email: This e-mail address is being protected from spambots. You need JavaScript enabled to view it

{Subject:caption}: {Subject:value}

Extra Information: Test

It is missing a few fields, such as location, interest area. And more importantly is not showing the actual name and phone number of the visitor.

Is it impossible to create a form which serves the dual purpose of a standard contact form with the option to pick up newsletter subscribers?

I figured this could work if you could auto-populate hidden fields (which correspond to mailchimp fields) with the information that the visitor provides.

But i'm a bit lost. Any one had success with this?
The administrator has disabled public write access.

Re: Mailchimp & Emailed Forms 13 years 2 months ago #16331

Hi,

I've not actually done this but it is possible. I don't use the Mailchimp plugin, I just script directly to the MailChimp api using RSForm's Scripting tab (so you can do whatever you want). I've just written a tutorial about it.

Start by creating a form that collects all the information that you want; name, email, phone number, etc. If you have some fields in Mailchimp that you want to populate but don't want a visitor to fill in, then create them as hidden fields. You'll be able to populate them with data, either manually or via code.

The most important field will be the "Subscribe to Newsletter" checkbox that you put somewhere near the Submit button. In the Scripting tab - on form process - I would use a PHP IF statement to check if this field was True (had been ticked). If it was you can trigger the code (see tutorial) to make a connection to your list at Mailchimp, grab the values from the contact form that you need and subscribe the user.

Hope that points you in the right direction.
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!