From 2464cf4c32fd15c56a3632cd546db4c0994a5431 Mon Sep 17 00:00:00 2001 From: textual Date: Fri, 7 Jan 2022 05:29:57 -0800 Subject: [PATCH] example to show error message use the errors array to pull error message for the name field --- versioned_docs/version-3.2.2/form.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/versioned_docs/version-3.2.2/form.md b/versioned_docs/version-3.2.2/form.md index 6a078af67..854e08e0a 100644 --- a/versioned_docs/version-3.2.2/form.md +++ b/versioned_docs/version-3.2.2/form.md @@ -1,4 +1,4 @@ ---- +[na--- id: form title: Form with Validation --- @@ -169,7 +169,7 @@ function BuildingAFormExample() { onChangeText={(value) => setData({ ...formData, name: value })} /> {'name' in errors ? - Error + {errors['name']} :