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!
Community Builder plugin problem at registration
3 years 2 months ago #34806
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:
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.