10713 Posts in 2391 Topics by 1763 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'
24 September 2013 at 7:47am
Mitch - Where in the code (which file) would your suggested code go?
|Go to Top|