From 6ac1c8256b034fc303616072733151ac9d739c4e Mon Sep 17 00:00:00 2001 From: Antony Thorpe Date: Fri, 23 May 2014 17:33:32 +1200 Subject: [PATCH] Update forms.md with additional code in MyForm.ss Show two ways of reaching a nested field plus that field's validation message --- docs/en/topics/forms.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/docs/en/topics/forms.md b/docs/en/topics/forms.md index 47427e1d9..648a13200 100644 --- a/docs/en/topics/forms.md +++ b/docs/en/topics/forms.md @@ -260,7 +260,7 @@ First of all, you need to create your form on it's own class, that way you can d is *MyForm*. If the template doesn't exist, then it falls back to using Form.ss. *MyForm.ss* should then be placed into your *templates/Includes* directory for your project. Here is an example of -basic customisation: +basic customisation, with two ways of presenting the field and its inline validation: :::ss
@@ -274,11 +274,19 @@ basic customisation:
- $Fields.dataFieldByName(Password) + <% with $Fields.dataFieldByName(Password) %> + $field + <% if $Message %> +

$Message

+ <% end_if %> + <% end_with %>
$Fields.dataFieldByName(SecurityID)