1. Sanc
  2. Bugs
  3. Tuesday, 23 August 2016
  4.  Subscribe via email
I activated the CMC plugin for Community Builder to appear on the registration form. Now when someone wants to register for my site and does not check the box for the newsletter, he will be unable to proceed, as the email textbox is required. This is however not visible. It only becomes visible that the textbox is empty when the user checks the newsletter box. The field mappings are active:
EMAIL=email
FNAME=name:0
LNAME=name:1

On the other hand, I tried to solve the issue by not showing any fields, and relying only on the field mapping. This works at registration, but causes a problem on the user profile of Community Builder. If the user did not register for the newsletter at registration, he will be unable to do so on his user profile. It will result in the following error when the user hits subscribe:
"400: The resource submitted could not be validated. For field-specific details, see the 'errors' array."

Please help. Thanks!
Responses (1)
Daniel Dimitrov
Support team
Accepted Answer Pending Moderation
Hey Sanc,
Well, if you don't need any other information from your users than the mapping is the way to go. At the end it doesn't make sense to request the same information twice.

there is really an issue with the newsletter fields when those are required. For some reason CB is validating hidden fields, but that's not the default setting of the jquery validation plugin. Can you ask at the cb site if they have a clue why hidden fields are validated?
According to this here: https://github.com/jzaefferer/jquery-validation/issues/189 the standard setting for hidden fields is not to be validated & I can see in the source code of jquery.validation that ignore is set to :hidden. So if the newsletter fields are hidden, then they shouldn't be shown..

As far the 400 error is concerned I think that it will be fixed with the 3.0.1 release.

Regards,
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. Bugs
  3. # 1
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Last questions

Errror on Google Captcha V3 in Matukio
Hi, I am experiencing spam-problems on contact-forms protected by google reCa...
0 Replies
Posted on Wednesday, 20 March 2024
  • New
  • Google map styles migrating......
    Google are updating their map styles. Is there anything we need to do to migrate...
    0 Replies
    Posted on Monday, 18 March 2024
    • #google maps
    • #map styles
    Latest Hotspots Makes Website Hang
    When using the Latest Hotspot module, the webpage slows down and does not load....
    3 Replies
    Posted on Monday, 15 January 2024
    Text ändern
    Hallo in der Übersicht der Veranstaltungen kann man ja auf "Mehr Informati...
    0 Replies
    Posted on Thursday, 14 March 2024
    When is CComment compatible with Joomla 5?
    When is CComment compatible with Joomla 5?...
    3 Replies
    Posted on Tuesday, 05 December 2023
    • #CComment
    • #Joomla 5