17488 Posts in 4473 Topics by 1978 members
|Go to End|
22 September 2007 at 7:52am Last edited: 22 September 2007 7:54am
I've been looking for a few examples for various stuff:
- how to set default values for fields in TableField where the fieldtypes are set in another class
- how to have validation on this fields and on fields in the backend in general, like emailfield...I see that there's this function jsValidation(), setRequiredFields(),... , an example on when and where to use it would help a lot
7 October 2007 at 2:48am
i've slightly modified the docs at http://doc.silverstripe.com/doku.php?id=tablefield.
they now describe how to add validation to a TableField.
> how to set default values for fields in TableField where the fieldtypes are set in another class
it is currently not possible to set default values for visible formfields inside a TableField. you have to use setExtraData() which produces HiddenFields.
|Go to Top|