Support

Home Forums Event Espresso Premium "additional delegate" information not stored in registrations

"additional delegate" information not stored in registrations

Posted: October 24, 2023 at 7:46 am

Viewing 5 reply threads


adijeff

October 24, 2023 at 7:46 am

Hi,

For my event, delegates can register multiple people, but the “additional delegate” information not stored in registrations, instead the “primary delegate” information is duplicated.

If I select “personal information” questions for additional delegates the email field does not accept any value and prevents delegates moving on to the payment page.

I think there’s probably some custom code breaking things, but don’t know how to fix.

** REMOVED **

Thank you very much.


Tony

  • Support Staff

October 24, 2023 at 8:02 am

Hi there,

These forums are public so I’ve removed your login credentials and I will not use those to log in.

Please reset the password on that account asap and use this form to submit them:

https://eventespresso.com/send-login-details/


adijeff

October 24, 2023 at 8:23 am

Ah yes, thanks for that. I have changed the password, and sent it via the form.


Tony

  • Support Staff

October 24, 2023 at 9:02 am

Hi there,

There’s a lot of custom code running on the checkout page and the from what I can tell the issue is from custom code removing fields from the personal information group which then means validation fails because EE has no value for those when the form is submitted.

This isn’t something we can troubleshoot for you, the developer who created that customization needs to fix this.

wdm-customize-event-booking-flow/assets/js/wdm_auto_fill_attendee_details.js


if (details) {
        		//console.log(details)
                // Company or Affiliation = ee-reg-qstn-18-input-dv || Title = ee-reg-qstn-16-input-dv || Tutor email = ee-reg-qstn-15-input-dv || Job title = ee-reg-qstn-17-input-dv
        		if (details.additional_field == '') {
	        		jQuery(this).find(".ee-reg-qstn-14-input-dv").remove();
	        		jQuery(this).find(".ee-reg-qstn-15-input-dv").remove();
        		}else if (details.additional_field == 'non-student') {
        			jQuery(this).find(".ee-reg-qstn-15-input-dv").remove();

                    jQuery(this).find('.ee-reg-qstn-14-input-dv label.ee-reg-qstn').html('University Name <span class="ee-asterisk">*</span>');
                    jQuery(this).find('.ee-reg-qstn-14-input-dv input').prop('required',true);
                }else if (details.additional_field == 'student') {
                    jQuery(this).find(".ee-reg-qstn-14-input-dv").remove();
                    jQuery(this).find(".ee-reg-qstn-17-input-dv").remove();
                	jQuery(this).find(".ee-reg-qstn-18-input-dv").remove();
                    
                	jQuery(this).find('.ee-reg-qstn-15-input-dv label.ee-reg-qstn').html('Tutor email <span class="ee-asterisk">*</span>');
                	jQuery(this).find('.ee-reg-qstn-15-input-dv input').prop('required',true);
                	jQuery(this).find('.ee-reg-qstn-15-input-dv input').addClass('email');
                }

        		jQuery(this).find(".ee-reg-qstn-fname-input-dv input").val(details.fname);
        		jQuery(this).find(".ee-reg-qstn-lname-input-dv input").val(details.lname);
        		jQuery(this).find(".ee-reg-qstn-email input").val(details.email);
        		attendee_details.splice((details['remove_index']-1), 1);
        	}

That’s removing fields from the page based on the selections made previously. So when I try to register and inputa valid email the form is rejected because 2 fields are missing:

https://monosnap.com/file/D0DiouRM6AlOvbZ2uSU0ZVWP6Ze7Mi


adijeff

October 25, 2023 at 8:22 am

Thanks very much for your pointer. I have tweaked the js to fix the issue. The way I did it was to make the job title and Company fields optional in settings, but for the delegates who I needed this info for, I added this to the file (question 17 is job title, and 18 is company):

jQuery(this).find('.ee-reg-qstn-17-input-dv input').prop('required',true);
jQuery(this).find('.ee-reg-qstn-18-input-dv input').prop('required',true);

All fixed, as long as they complete the field. If the validation error is triggered it seems to never validate, but it’s good enough for now, and at least the delegate name and email are stored correctly in the registrations.


Tony

  • Support Staff

October 25, 2023 at 3:14 pm

Awesome, I’m glad you found a fix 🙂

Viewing 5 reply threads

The support post ‘"additional delegate" information not stored in registrations’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso