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:

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.

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

Trying to override default_form.php in Joomla 4 bu
I've installed CComment Core on my Joomla 4 site. Looks good so far, except for ...
0 Replies
Posted on Thursday, 02 December 2021
  • New
  • How much do you take to develop a plugin to displa
    Hello, I have a site with Hotspots Pro 6 installed. How much do you take to ...
    2 Replies
    Posted on Wednesday, 24 November 2021
    • #hotspots pro
    Installing Compojoom
    Hi, I just bought the Matukio Events and tried to install the extension via Comp...
    11 Replies
    Posted on Sunday, 28 November 2021
  • New
  • How to enable or disable comments for a category o
    Hi, How do I enable/disable comments for a category? Or menu/menu item? I can'...
    2 Replies
    Posted on Monday, 29 November 2021
  • Resolved
  • New
  • Where is the most recent plugin for Community Buil
    Hi! I have an older version of the plugin for HotSpots locations to integrate...
    6 Replies
    Posted on Sunday, 21 November 2021