From 67437098cb8cf3c815e2dda91ee6432f98a80f9c Mon Sep 17 00:00:00 2001 From: Josh Hall Date: Thu, 17 Jul 2014 16:07:29 -0500 Subject: [PATCH] Add pattern to number field to only allow for numbers --- modules/backend/widgets/form/partials/_field_number.htm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/backend/widgets/form/partials/_field_number.htm b/modules/backend/widgets/form/partials/_field_number.htm index a5f1a474f..9222b703f 100644 --- a/modules/backend/widgets/form/partials/_field_number.htm +++ b/modules/backend/widgets/form/partials/_field_number.htm @@ -11,6 +11,7 @@ class="form-control" autocomplete="off" maxlength="255" + pattern="\d+" attributes) ?> /> - \ No newline at end of file +