×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Community Builder plugin problem at registration

Community Builder plugin problem at registration 8 years 2 months ago #34731

  • Sanc
  • Sanc's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 0
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!

Community Builder plugin problem at registration 8 years 2 months ago #34806

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
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: 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
  • Page:
  • 1
Time to create page: 0.147 seconds