10390 Posts in 2202 Topics by 1712 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1914 Views |
-
Default Value of Text Field in User Forms

1 June 2010 at 3:40am
I'm trying to find out how to give a textfield or textareafield a default value, can anyone help me with this?
I've searched the docs and tried to search the code (as best I can), but can't find it.
Any help appreciated.
-
Re: Default Value of Text Field in User Forms

16 June 2010 at 3:25am
new TextareaField( name, title, rows, cols, value, form)
documentation here
-
Re: Default Value of Text Field in User Forms

6 October 2010 at 10:06am
To set a default value for a DB field use the $defaults array:
public static $defaults = array(
'Name' => 'John Doe'
);
| 1914 Views | ||
|
Page:
1
|
Go to Top |



