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
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.