Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » A few tablefield questions...

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 1449 Views
  • dio5
    Avatar
    Community Member
    501 Posts

    A few tablefield questions... Link to this post

    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

    many thanx

  • Ingo
    Avatar
    Forum Moderator
    801 Posts

    Re: A few tablefield questions... Link to this post

    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.

    1449 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.