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

Questions on new installation...
Working on getting this set up... https://eastend2024.joepolecheck.com/rumma...
0 Replies
Posted on Wednesday, 17 April 2024
  • New
  • Error received? Class "XMLReader" not fo
    Just installed the Pro version of Hotspots, but am getting an error when I try t...
    0 Replies
    Posted on Wednesday, 17 April 2024
  • Resolved
  • New
  • Links aus Veranstaltungsübersicht funktionieren ni
    Nach der Migration von Joomla 3.10 auf Joomla 5.0.3 treten folgende Probleme auf...
    2 Replies
    Posted on Monday, 08 April 2024
    Custom Hotspot Marker fails to load
    I just updated from Joomla 3 to Joomla 4.3.4 and Hotspots 6.0.12. I decided to e...
    0 Replies
    Posted on Tuesday, 09 April 2024
    Language parameter in the link to the comment
    Hello. 1) I have a multilingual website (3 languages). If someone added a comme...
    0 Replies
    Posted on Saturday, 06 April 2024