Support

Home Forums Event Espresso Premium Edit Attendee Registration Styling – Public Side

Edit Attendee Registration Styling – Public Side

Posted: December 6, 2013 at 10:26 am

Viewing 5 reply threads


Cody Hageman

December 6, 2013 at 10:26 am

The edit registration page seems to be missing a <p>; or a </p>. This is the code that is getting created

<fieldset><label for=”TEXT_11″>Are you of legal gambling age in your state of residence?*</label>
<p class=”event_form_field”>
</p><ul class=”edit-options-list-check”>
<li style=”min-width:45%;”>
<label class=”checkbox-lbl”>
<input id=”11_0″ title=”” class=” required ee-reg-page-questions” name=”MULTIPLE_11[]” type=”checkbox” value=”Yes I’m of legal gambling age in my state of residence” checked=”checked”>
<span>Yes I’m of legal gambling age in my state of residence</span>
</label>

<p></p><label for=”TEXT_12″>By submitting this form you agree to the rules*</label>
<p class=”event_form_field”>
</p><ul class=”edit-options-list-check”>
<li style=”min-width:45%;”>
<label class=”checkbox-lbl”>
<input id=”12_0″ title=”” class=” required ee-reg-page-questions” name=”MULTIPLE_12[]” type=”checkbox” value=”I agree” checked=”checked”>
<span>I agree</span>
</label>

<p></p>
<input type=”hidden” name=”id” value=”38″>
<input type=”hidden” name=”r_id” value=”1-52a1fc2272099″>
<input type=”hidden” name=”event_id” value=”1″>
<input type=”hidden” name=”attendee_action” value=”update_attendee”>
<input type=”hidden” name=”regevent_action” value=”edit_attendee”>
<input type=”hidden” name=”primary” value=”38″>

<p class=”event_form_submit”>
<input class=”event-form-submit-btn” type=”submit” name=”submit” value=”Update Record”>
</p>

</fieldset>


Josh

  • Support Staff

December 6, 2013 at 4:14 pm

I don’t see any mismatched p tags in the code you posted, do you?


Cody Hageman

December 6, 2013 at 5:03 pm

No not in the code that I posted, the code I posted is the html generated by the browser, but if you notice in the code I posted the elements that should be in the <p class=”event_form_field”></p> are not within the said elements. When I run the page through the http://validator.w3.org/ it shows a missing <p> tag. This is the page that is having the issue http://www.exchangeraffle.com/event-registration/?registration_id=1-52a2653bc680a&id=48&regevent_action=edit_attendee&primary=48&event_id=1&attendee_num=1 notice the ‘Update Record’ button is showing within the last fieldset.

Maybe I am missing something. Please help.


Josh

  • Support Staff

December 6, 2013 at 8:08 pm

This is a little strange. It’s actually missing a closing fieldset and div tag after the last two questions. I can see where in the form’s logic where it is supposed to spit out the closing fieldset and div tag in /event-espresso/includes/process-registration/attendee_edit_record.php starting on line 282 it does this:

$counter++;
echo $counter == $total_questions ? 
'</fieldset>
</div>' : '';

Basically what that’s doing is comparing the count of questions to the total questions and when the count equals the total it spits out the closing fieldset and closing div tags. If the count doesn’t equal the total number of questions (there are more questions to loop through, then it outputs nothing.

I’ve tested this out a few ways to try to reproduce the issue you are seeing and so far I’m not able to figure this out.

Can you try adding an additional, temporary question to the last question group there to see if that makes any difference?


Cody Hageman

December 7, 2013 at 6:34 am

Thank you for your response. I added a test question to each of the questions in the last fieldset but it didn’t seem to fix the issue. I am going to look into it a little more with my data and see I can figure out what it doing too.


Cody Hageman

December 9, 2013 at 7:26 am

Ok, here is what the issue was. I had First Name, Last Name, and Email in both the Personal Information question group and the Address Information question group. The code creates the array

<pre class=”brush: php; gutter: true; first-line: 1; highlight: []; html-script: false”>$question_displayed[] = $question_id

This, however, continues to add one to
<pre class=”brush: php; gutter: true; first-line: 1; highlight: []; html-script: false”>$counter++

resulting in an uneven count between
<pre class=”brush: php; gutter: true; first-line: 1; highlight: []; html-script: false”>$counter and <pre class=”brush: php; gutter: true; first-line: 1; highlight: []; html-script: false”>$total_questions

Viewing 5 reply threads

The support post ‘Edit Attendee Registration Styling – Public Side’ 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