Support

Home Forums Event Espresso Premium Email verifiation and Input name

Email verifiation and Input name

Posted: May 21, 2014 at 4:04 am

Viewing 2 reply threads


Menno Stoelwinder

May 21, 2014 at 4:04 am

Dear,

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.

Standard Email field

<code>&lt;div class=&quot;event_form_field&quot;&gt;&lt;/div&gt;
&lt;input class=&quot;ee-reg-page-questions&quot; type=&quot;hidden&quot; value=“” name=&quot;email&quot;&gt;&lt;/input&gt;</code>

Custom Email field

<code>&lt;div class=&quot;event_form_field&quot;&gt;
    &lt;label class=&quot;ee-reg-page-questions&quot; for=&quot;TEXT_39&quot;&gt;&lt;/label&gt;
    &lt;input id=&quot;TEXT_39-1-0-1&quot; class=&quot; required ee-reg-page-questions ee-reg-page-text-input TEXT_39&quot; type=&quot;text&quot; value=&quot;&quot; name=&quot;TEXT_39&quot; title=&quot;&quot;&gt;&lt;/input&gt;</code>

What can I do so it can verify the email format.

Thank your


Dean

May 21, 2014 at 6:01 am

Hi,

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.


Menno Stoelwinder

May 21, 2014 at 8:53 pm

Beautiful! works out well. Thank you.

Viewing 2 reply threads

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.

Event Espresso