how i can add tag required on this flask code :
{{ form.youtube_href(type=\'url\', class=\'form-control\') }}
actual output is :
To those who simply want to add the required attribute to their html input, this can be accomplished by following the comment mentioned by Raja Simon above. Simply call your field name in your template with required='required' Example:
required
required='required'
... {{myform.my_name_field(required='required')}} {{myform.my_email_field(required='required')}} ...
The Above code will result in fields like so: