Support

Home Forums Event Espresso Premium Validation Error Notification Popup is Not Visible

Validation Error Notification Popup is Not Visible

Posted: February 23, 2021 at 10:56 am


AventusAdmin

February 23, 2021 at 10:56 am

https://devaventus.wpengine.com/covid-19-vaccinations/appointments/

When submitting the form and no radio field is selected, it shows no validation error msg on page. Page just reloads.

I made a new template in my child theme named “single-espresso_events.php”. There I used a shortcode [ESPRESSO_TICKET_SELECTOR event_id=”‘ . $event_post_id . ‘”] and a few other lines of code.

Please help to resolve this.


Tony

  • Support Staff

February 23, 2021 at 12:36 pm

Hi there,

Are you The Loop on that template?

I’m guessing not as none of the EE placeholders for notices are being added to that page, which is done via the loop_start action so you need the loop.

I made a new template in my child theme named “single-espresso_events.php”. There I used a shortcode [ESPRESSO_TICKET_SELECTOR event_id=”‘ . $event_post_id . ‘”] and a few other lines of code.

May I ask, why are you using the shortcode for this? It would be considered doing_it_wrong() as you can call the functions directly, for example:

<?php espresso_ticket_selector( $post ); ?>

Take a look in \event-espresso-core\public\Espresso_Arabica_2014\ for examples of how to do this.


AventusAdmin

February 24, 2021 at 5:24 am

Thanks, for your quick response.
this worked \event-espresso-core\public\Espresso_Arabica_2014\


Tony

  • Support Staff

February 24, 2021 at 6:22 am

Great, I’m glad that helped.

The support post ‘Validation Error Notification Popup is Not Visible’ 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