I am trying to add HTML5 placeholder attribute to Deform 2.0 TextInputWidget
. However I am not sure if this should be supported or how this should be supported as documentation is not very clear about this - there seems to be some mask_placeholder feature which doesn't be what I want.
How to add HTML5 placeholder to Deform text input (2.0+)?
EDIT: As of Deform 2.0.7, HTML5 attributes are supported.
https://docs.pylonsproject.org/projects/deform/en/latest/changes.html
Ok - the trick is to have a custom template - Deform templates did not yet have support for placeholder:
And then you can define your widget as: