I want to add a new question to the registration form called ’emergency contact email’. Now i understood that the verification goes by recognizing the input name”email” to do the verification.
Now when I add a question myself, i cant locate the place where I change the name.
There is no built in way to add the needed information (a Class in this case).
Instead of hacking at core files, I think the simplest way to achieve it is to add in some JavaScript to the registration_page_display.php template. Something like this
<script type=”text/javascript”>
$jaer = jQuery.noConflict();
jQuery(document).ready(function($jaer) {
jQuery(function(){
jQuery(‘.TEXT_14′).addClass(’email’);
//the line below should not be necessary but if you run into issues you can uncomment it and see if it assists.
//jQuery(‘#registration_form’).validate();
});
});
</script>
TEXT_14 is the class of the question field, and the jQuery adds the Class email to it.
Please note that it is best to copy both the registration_page_display.php and registration_page.php to wp-content/uploads/espresso/templates, and then edit the registration_page_display.php file there. This will stop updates from over writing that file.
The support post ‘Email verifiation and Input name’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.