Python Flask WT-Forms Demo: Intro to Validation -- Input Required

Опубликовано: 29 Сентябрь 2024
на канале: Thomas Blum
190
2

In this video we add validation to our WT-Forms demo. This first level of validation is to require a field. One can add further levels of validation so the validators argument in WT-Forms is a list. The InputRequired() validator adds a "required" attribute to the form element when the HTML for the form is rendered.