Title: Custom error message not shown
Last modified: August 20, 2016

---

# Custom error message not shown

 *  Resolved [Yasp0](https://wordpress.org/support/users/yasp0/)
 * (@yasp0)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/custom-error-message-not-shown/)
 * I use Events Manager Pro and want to add custom error messages when a booking
   field is empty or incorrect.
 * I set the error message under Forms editor -> any booking field -> options. But
   it keeps showing the default English message like ‘Please fill in the field’ 
   and ‘The email address isn’t correct.’
 * I use WP in Dutch and EM is also in Dutch (most parts).
 * How come the custom error messages don’t show up?
 * [http://wordpress.org/extend/plugins/events-manager/](http://wordpress.org/extend/plugins/events-manager/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [Yasp0](https://wordpress.org/support/users/yasp0/)
 * (@yasp0)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/custom-error-message-not-shown/#post-3586712)
 * Better Googling next time 😉
 * I found this tip, go to: [http://www.yoursite.com/wp-admin/options.php](http://www.yoursite.com/wp-admin/options.php)
 * There I could translate the ‘Please fill in the field’ part.
 *  [agelonwl](https://wordpress.org/support/users/angelonwl/)
 * (@angelonwl)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/custom-error-message-not-shown/#post-3586713)
 * thanks for the update.
 *  Thread Starter [Yasp0](https://wordpress.org/support/users/yasp0/)
 * (@yasp0)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/custom-error-message-not-shown/#post-3586714)
 * I also have an update for the ‘The email address isn’t correct.’ part.
 * Put this in your themes functions.php
 *     ```
       function my_em_text_rewrites($translation, $orig) {
       	switch ($orig) {
       		case 'The email address isn’t correct.' :
       			$translation = 'Your translation';
       			break;
       		case '<strong>ERROR</strong>: The email address isn’t correct.' :
       			$translation = 'Your translation';
       			break;
       	}
       	return $translation;
       }
       add_action ( 'gettext', 'my_em_text_rewrites', 1, 2 );
       ```
   
 * ATTENTION
 * Replace the apostrophe in the word isn’t with: & #8217;
    (remove space)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Custom error message not shown’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=3550347)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Yasp0](https://wordpress.org/support/users/yasp0/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/custom-error-message-not-shown/#post-3586714)
 * Status: resolved