Thread tagged as: Suggestions

Copy pattern attribute to rendered inputs


In perch v3.1.3, line 177 of PerchFieldType.class.php specifies 3 attributes which are copied from template tags to the rendered inputs:

$copy_atts = ['placeholder', 'autocomplete', 'autofill'];

I would find it very useful if "pattern" were added to this list.

Thanks, Mark

Mark Fisher

Mark Fisher 0 points

  • 2 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

I think we can probably do that.

Great, thanks!