Show the regex hint in the browser validation notice.

This commit is contained in:
Jan Böhmer 2025-11-03 00:11:02 +01:00
parent 766c449940
commit 9ddbd4ca57

View file

@ -93,6 +93,7 @@ class PartBaseType extends AbstractType
if ($this->ipnSuggestSettings->regex !== null && $this->ipnSuggestSettings->regex !== '') {
$ipnAttr['pattern'] = $this->ipnSuggestSettings->regex;
$ipnAttr['placeholder'] = $this->ipnSuggestSettings->regex;
$ipnAttr['title'] = $this->ipnSuggestSettings->regexHelp;
}
$ipnOptions = [