CiviCRM Event, Registration of multiple participants fails when recaptcha is enabled and successfully submitted on the initial Event registration screen.
CiviCRM Event, Registration of multiple participants fails when recaptcha is enabled and successfully submitted on the initial Event registration screen.
Steps to reproduce
- Create Profile "A" to be used for Event registrations
- Enable Recaptcha on the Profile
- Ensure that the Recaptcha API keys have been set
- Set up an Event to allow multiple participants to register
- Set Profile "A" as the Profile for both the First Registration and Additional Participants.
- Complete the other usual Event fields and then save the Event
- Create a test registration for the Event.
- Set the number of additional registrations to be 2.
- Complete the recaptcha for the first registration
- Proceed to the additional participant screen.
- Complete the details for the additional participant.
- Note that there is no recaptcha shown on this screen.
- Click the continue button.
- CiviCRM returns the following error message:
- "Please correct the following errors in the form fields below:
- Please go back and complete the CAPTCHA at the bottom of this form."
- This error is wrong. The initial recaptcha was completed, there was no recaptcha shown on the additional participant and as a result, the registration for additional participants cannot continue.
This problem has been reproduced on wpmaster.demo.civicrm.org, CiviCRM 5.25.alpha1 and initially identified on CiviCRM 5.21.1
Known workaround
- Use a separate Profile for the Additional Participants.
- On this Profile, disable the Recaptcha option.
- Additional Participants can then be registered without displaying the error message.
Agileware Ref: CIVICRM-1451