diff --git a/docs/en/topics/forms.md b/docs/en/topics/forms.md index e05c9fedb..cb0c902a3 100644 --- a/docs/en/topics/forms.md +++ b/docs/en/topics/forms.md @@ -286,8 +286,8 @@ define a custom template using a `forTemplate()` method on your Form class. of return value of `$this->class`, which in this case 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 customization: +*MyForm.ss* should then be placed into your *templates/Includes* directory for your project. Here is an example of +basic customisation, with two ways of presenting the field and its inline validation: :::ss
@@ -301,11 +301,19 @@ your project. Here is an example of basic customization:
$Fields.dataFieldByName(Email) + + $Fields.dataFieldByName(Email).Message +
- $Fields.dataFieldByName(Password) + <% with $Fields.dataFieldByName(Password) %> + $field + <% if $Message %> +

$Message

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