10390 Posts in 2202 Topics by 1712 members
|Go to End|
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.
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'
|Go to Top|