Custom Parameter In Flask-wtfoms Field
forms.py my_field = TextField(u'Enter a number', validators=[Required('This Field is Required')]) my_form.html
{{form.Solution 1:You need to create a custom field with an extra First define the custom field sub classing
Now use the custom field in your form:
See that first parameter (a Finally, access the attribute in your template like so:
|
Post a Comment for "Custom Parameter In Flask-wtfoms Field"