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.

You must be logged in to reply to this support post. Sign In or Register for an Account

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3 Documentation for Event Espresso 4

Status: publish

Updated by  Tony 1 week ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!