Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Included a patch that adds a custom error message for the unique property
Comment | File | Size | Author |
---|---|---|---|
#1 | webform_custom_error_for_unique.patch | 3.56 KB | attiks |
webform_custom_error_for_unique.patch | 3.58 KB | attiks | |
Comments
Comment #1
attiks CreditAttribution: attiks commentedsame patch without the print_r
Comment #2
quicksketchThere is a similar issue for the required message: #889198: Add capability to use custom error message for required field.
As with that issue, I'm not sure this option is worth the additional space in the UI. In any case, this patch would need a reroll for the 4.x branch (where all new features are going) and should avoid abbreviations like "msg". It would be optimal if it borrowed consistency from the other issue. The message needs to use a dedicated FAPI property for compatibility with Form Builder.
Comment #3
quicksketchIf rerolled, this should take into accounts the suggestions from #889198-24: Add capability to use custom error message for required field also:
Comment #4
DanChadwick CreditAttribution: DanChadwick commentedClosing for lack of activity and demand.