Skip to content

Instantly share code, notes, and snippets.

@ericakfranz
Created December 1, 2015 16:56
Show Gist options
  • Save ericakfranz/f3dff7e95581eea7b43e to your computer and use it in GitHub Desktop.
Save ericakfranz/f3dff7e95581eea7b43e to your computer and use it in GitHub Desktop.
Customize the error messages shown for the email and name input fields for OptinMonster when using any native Email Service Provider integration. Can be used to translate the message shown as well.
jQuery(document).ready(function($){
jQuery(document).on('OptinMonsterBeforeShow', function(event, props, object) {
object.setProp('email_error', 'Replace this text with your custom email field error message');
object.setProp('name_error', 'Replace this text with your custom name field error message');
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment