reahl

the Python-only web framework

Dealing with user input

Fields define what makes for valid user input. Link an Input Widget to
a Field, and it will automatically validate user input in JavaScript as well
as server-side (in case your JavaScript is bypassed).

Once you define a Field on an object, you can re-use it from different Inputs.

Try it out

Type 'something' into the input below and tab out: notice the validation errors.