1. Jonathan Appleton
  2. CMC - Mailchimp for Joomla!
  3. Wednesday, 26 March 2014
  4.  Subscribe via email
Hi
On our mailchimp list we have email, firstname and lastname all as required fields.
When registering using JomSocial and you tick the newsletter box it then reveals the 3 fields to be filled out but the user will have just written out those 3 exact same values above this so seems bad to have to ask them to type in their email, firstname and lastname once again
so im wondering if it would be possible to amend your CMC javascript that is triggered when you click newsletter and the fields are shown coudl it also copy the values from email, first name and last name down in to the newsletter fields.....
Woudl happily donate a small amount for example code to do that please
thanks
Jonathan
PS can you fix your docuemnts as many of your screen shots are not loading eg here https://compojoom.com/support/documentation/cmc/ch03s04
============

EDIT: solved by adding 3 lines to file below :)

I edited the file /media/plg_community_cmc/js/cmc.js

document.id('cmc_newsletter').addEvent('click', function() {
if(this.checked)
{
fields.setStyle('display', 'block');
$$('.cmc_req').addClass('required').set('required', 'required');
//added three lines below to copy email and name from main form to newsletter fields
document.getElementById('cmc_groups_FNAME').value = jomsForm.elements.jsfirstname.value;
document.getElementById('cmc_groups_LNAME').value = jomsForm.elements.jslastname.value;
document.getElementById('cmc_groups_EMAIL').value = jomsForm.elements.jsemail.value;
Responses (2)
Daniel Dimitrov
Support team
Accepted Answer Pending Moderation
Awesome! We plan to improve this with the next version. It won't be necessary at all to show the fields. We'll get the data from the fields you specify.

Cheers,
Daniel
Please if you use our extensions be so kind and review them at JED
Matukio | Hotspots Pro | CComment Pro
  1. more than a month ago
  2. CMC - Mailchimp for Joomla!
  3. # 1
Accepted Answer Pending Moderation
I also used this and it works perfectly! Thanks :)
  1. more than a month ago
  2. CMC - Mailchimp for Joomla!
  3. # 2
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.
Powered by EasyDiscuss for Joomla!