$overlay{_template.html#body} $begin{content}
When all required fields are filled such that they pass validation, the form can be submitted -- and the label of the submit button changes from Validate to Register.
When submitted, the fields are guaranteed to be re-validated on the server using exactly the same checks (actually using the python version of the field checks, from which the client side validation JavaScript code has been automatically generated). Note that submission of this demo registration form only redisplays it with the submitted values (no new user is created). More explantions at ${html.href('/gform','Gizmo Form')} (for login details see ${html.href('/','demo home page')}).
${content}The definition in python for this registration form is included below, as part of the source for the /register/ directory -- note the inheritance from gz.fill.register_dir.RegisterDir, that takes care of tasks such as the handling of the JSON validation callback defined on the userid field.
${site.ViewSrc('src_dreg', 'register.py#code', collection='pages', title='Python source for the /register/ directory', )} $begin{content}