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.

Last questions

Complete Uninstall to Work in J4??
We have recently updated a site from Joomlav3 to v4 (4.4.2). Now when we go to m...
4 Replies
Posted on Tuesday, 30 April 2024
  • New
  • verschiedene URL's für Kursübersicht einer Kategor
    Hallo, ich habe eine Frage in Bezug auf SEO: ein externer Spezialist macht die...
    1 Replies
    Posted on Monday, 29 April 2024
  • New
  • Google no index für bestimmte Seiten/Details
    Hallo ich habe eine kleine Frage: wo kann ich einstellen, dass Google die Seite...
    1 Replies
    Posted on Wednesday, 24 April 2024
    Changes to Submission Form?
    Are you able to make changes to the Hotspot submission form? There are several f...
    0 Replies
    Posted on Friday, 26 April 2024
  • New
  • Question regarding custom fields
    How do I access custom fields after I have created them?...
    0 Replies
    Posted on Wednesday, 24 April 2024
    • #custom fields