mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Update docs/en/topics/forms.md
Minor update to line 79 of the Form Fields sample code. Missing comma for the next field. throws error when using the code.
This commit is contained in:
parent
86dc36ca21
commit
7f3f560a60
@ -76,7 +76,7 @@ class, and add it to the fieldlist of the form.
|
||||
"SignupForm", // form name
|
||||
new FieldList( // fields
|
||||
TextField::create("FirstName")
|
||||
->setTitle('First name')
|
||||
->setTitle('First name'),
|
||||
TextField::create("Surname")
|
||||
->setTitle('Last name')
|
||||
->setMaxLength(50),
|
||||
|
Loading…
Reference in New Issue
Block a user