From 59817a1729cf4978b2e134daabe0efcb80996290 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 10 Jun 2017 16:31:27 -0700 Subject: [PATCH] document server side fallbacks --- docs/4.0/components/forms.md | 38 +++++++++++++++++++++++++++++++----- 1 file changed, 33 insertions(+), 5 deletions(-) diff --git a/docs/4.0/components/forms.md b/docs/4.0/components/forms.md index 4ce1ac2679..845002c2fe 100644 --- a/docs/4.0/components/forms.md +++ b/docs/4.0/components/forms.md @@ -908,15 +908,43 @@ While these feedback styles cannot be styled with CSS, you can still customize t +### Server side + +We recommend using client side validation, but in case you require server side, you can indicate invalid and valid form fields with `.is-invalid` and `.is-valid`. Note that `.invalid-feedback` is also supported with these classes. + +{% example html %} +
-
- +
+ + +
+
+ + +
+
+
+
+ + +
+ Please provide a valid city. +
- + + +
+ Please provide a valid state. +
-
- +
+ + +
+ Please provide a valid zip. +