Currently there is no way to configure and provide a custom message for the validateUnique.

Usecase:
1. lets say a user (anonymous) signs up for a newsletter with an email.
2. He again provides same email address with in same session the "validateUnique" shows an error message this time.
3. This message should be configurable so that a more customized message can be presented.

This is a fairly good amount of request from the client.

Comments

adhariwal created an issue. See original summary.

jrockowitz’s picture

Adding this feature makes sense, the new property should be called '#unique_error' and work exactly the same as '#required_error'.

  • jrockowitz committed 7f8b56d on 2853176-unique-error-message
    Issue #2853176: The error message shown for validateUnique should be...
jrockowitz’s picture

Status: Active » Needs review
StatusFileSize
new6.16 KB

  • jrockowitz committed 44a858b on 8.x-5.x
    Issue #2853176 by jrockowitz: The error message shown for validateUnique...
jrockowitz’s picture

Status: Needs review » Fixed

I committed the patch. Please download and review the latest dev release.

pradeep22saini’s picture

Issue summary: View changes
StatusFileSize
new6.18 KB

Patch for 8.x-5.0-beta7 version of the module.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.