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.
By jrockowitz on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.x-5.x
Introduced in version:
8.x-5.0-rc23
Issue links:
Description:
Webform pattern validation now supports Unicode expressions and custom error messages.
Screenshot
Element pattern validation configuration
YAML Source
pattern_unicode:
'#type': textfield
'#title': pattern_unicode
'#description': 'Enter unicode CJK characters ''⺏'''
'#pattern': \u2E8F
'#pattern_error': 'This is a custom error message'
Impacts:
Site builders, administrators, editors