From 01fdd1d0348585e8a4487dbc9a631cfc2504c02a Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Mon, 13 Feb 2017 11:28:46 +0000 Subject: [PATCH] Turn off HTML5 validation on registration form MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We do our own server-side validation of things like email address. We don’t want the browser also trying to do it based on the input type of a form field. It’s bad because the browser validation message comes up as a nasty little tooltip under the field. --- app/templates/views/register.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/templates/views/register.html b/app/templates/views/register.html index cad198d9b..3ac55b7d8 100644 --- a/app/templates/views/register.html +++ b/app/templates/views/register.html @@ -11,7 +11,7 @@ Create an account

Create an account

-
+ {{ textbox(form.name, width='3-4') }} {{ textbox(form.email_address, hint="Must be from a central government organisation", width='3-4', safe_error_message=True) }} {{ textbox(form.mobile_number, width='3-4', hint='We’ll send you a security code by text message') }}