Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MINOR: fixed typos in form documentation

  • Loading branch information...
commit bf516ed671f890b64773bad85dd94f01179d60ee 1 parent 908eeb4
@wilr wilr authored
Showing with 10 additions and 8 deletions.
  1. +10 −8 docs/en/topics/forms.md
View
18 docs/en/topics/forms.md
@@ -14,8 +14,8 @@ constructor takes the following arguments:
* `$name`: This must be the name of the method on that controller that is called to return the form. The first two
fields allow the form object to be re-created after submission. **It's vital that they are properly set - if you ever
have problems with form action handler not working, check that these values are correct.**
-* `$fields`: A `[api:FieldSet]`s that make up the editable portion of the form.
-* `$actions`: A `[api:FieldSet]`s that make up the control portion of the form - the buttons at the bottom.
+* `$fields`: A `[api:FieldSet]` containing `[api:FormField]` instances make up fields in the form.
+* `$actions`: A `[api:FieldSet]` containing the `[api:FormAction]` objects - the buttons at the bottom.
* `$validator`: An optional `[api:Validator]` for more information.
Example:
@@ -211,12 +211,12 @@ basic customisation:
<fieldset>
<div id="FirstName" class="field text">
- <label class="left" for="$FormName_FirstName">First name</label>
+ <label class="left" for="{$FormName}_FirstName">First name</label>
$dataFieldByName(FirstName)
</div>
<div id="Email" class="field email">
- <label class="left" for="$FormName_Email">Email</label>
+ <label class="left" for="{$FormName}_Email">Email</label>
$dataFieldByName(Email)
</div>
@@ -273,10 +273,12 @@ Adds a new text field called FavouriteColour next to the Content field in the CM
## Related
-* [form-field-types](/reference/form-field-types)
-* `[api:FormField]` class
-* [multiform module](http://silverstripe.org/multi-form-module)
+* [Form Field Types](/reference/form-field-types)
+* [MultiForm Module](http://silverstripe.org/multi-form-module)
## API Documentation
-`[api:Form]`
+* `[api:Form]`
+* `[api:FormField]`
+* `[api:FieldSet]`
+* `[api:FormAction]`
Please sign in to comment.
Something went wrong with that request. Please try again.