Display Email added in Custom error message
-
I want to display the email added by user with the custom message that i am adding, is this possible, please let me know.
https://ww.wp.xz.cn/plugins/yikes-inc-easy-mailchimp-extender/
-
Hello.
This article shows you how to add the name to the custom message, I’m sure it can be altered to show the email address instead: https://yikesplugins.com/support/knowledge-base/alter-the-success-message-when-a-user-subscribes-to-a-list/
Let us know if that works for you!
-TracyThankyou so much for your help but i want to change Email Already Subscribed message instead of Success Message.
Can you please help with that as well.
Hi Nishavn,
This article shows you how to alter the message. I will need some input from Evan as how to add the email address to the message.
https://yikesplugins.com/support/knowledge-base/change/
Thank you!
-TracyHi Nishavn,
I just went back and looked at the core code in the process submission/process submission ajax files – and it doesn’t appear that the error messages are filterable. You can filter the success message – but there is no filter in place to alter the error messages.
That is something that we can certainly include in a future release – you seem to be the first person to request such a feature – and I believe it could be beneficial to our users in the same way the success messages are setup.
Thanks,
EvanHi I am going to close this ticket because it’s been added to our to-do list fora future release.
Thank you!
-TracyCount me as the second person requesting this feature! š
Awesome, counted! š
Hi,
First of all your plugin is the perfect solution for a few of our needs, so thanks a lot for that!!
šIs there any resolution for this issue?
My client’s site is in Hebrew so showing messages in English doesn’t quite fit…
I tried searching these strings in the translation template (.pot) but couldn’t find it
=/Is there any workaround for that?
(worst case I might be able to alter it with JS?)PS – I’m not sure if there’s a differentiation between “local errors” (validation) and
“remote errors” (retrieved from MailChimp)… I’m currently talking about the local messages (such as: “Please fill out this field” or “please include an ‘@’ in the email address”).Thanks
-
This reply was modified 9 years, 2 months ago by
yanoom. Reason: Clarification
Hello,
All of the messages created by our plugin are translatable: https://yikesplugins.com/support/knowledge-base/custom-form-messages/
If you are referring to HTML 5 Validation messages, the language used will be the language of the user’s operating system.
So I will see them in English and another user who has their OS set to French will see them in French.
Does that make sense?
Thank you!
-TracyHi Tracy, thanks for your reply.
In my honest opinion it would be nice to be able to turn off verification for the form (user may chose to apply their own JS verification)…Changing the browser’s language isn’t quite straight forward and it’s common for non-English speakers to have the browser set to English (while visiting international websites).
=)Hi @yanoom,
What do you mean by turning off verification? If you’d like the fields to not be required, you can check that off for each individual field. You could also use our actions (e.g.
yikes-mailchimp-after-form) to add your own custom JS, and with that you’d be able to create your own validation scripts.Is that what you’re looking for?
Let us know,
Kevin.Hi Kevin,
Would adding validation scripts disable the browser’s validation messages (eg. “please fill out this field”, “Please enter an email address.”)?Thanks
Hi @yanoom,
The browser messages come from the fields being set to
requiredin the form builder (to change this, open up your form in the admin, click on a specific form field, and locate therequiredcheckbox).If the fields aren’t set to required, then no browser validation messages will occur (note that the email field must be set to required).
Once the fields aren’t set to required, you could add your own event handlers tied to the submit button, or when an input field is focused off, or whatever you’d like to do with your JavaScript to make custom messages.
So – if you remove the required flag the browser messages will no longer display and you can add your own validation scripts. Does that make sense?
Kevin.
-
This reply was modified 9 years, 2 months ago by
The topic ‘Display Email added in Custom error message’ is closed to new replies.