Jump to:

23493 Posts in 18998 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » ComplexTableField on the frontend

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 928 Views
  • netnerd85
    Community Member
    42 Posts

    ComplexTableField on the frontend Link to this post

    I'm trying to get a ComplexTableField to work on the frontend using the example code here but it's not working for me. I've only managed to get "(none)" to display. Does anyone have a full working example?

    I have a User DataObject that has Tasks. I would like the User to be able to manage their Tasks on the front end.

  • netnerd85
    Community Member
    42 Posts

    Re: ComplexTableField on the frontend Link to this post

    I managed to get the table with data to display using the code below but the add/edit and delete functions take me to "Page Not Found". Are there some functions or templates that I need to overwrite to get it to work? Is it tied into the Members system or something?

    function getTasks() {      
       $tableField = new ComplexTableField(
             'Title' => 'Title'


       $fields = new FieldSet(
          new HiddenField('ID', ''),

       $actions = new FieldSet(
          new FormAction('Go', 'Go')

       return new Form($this, 'EditForm', $fields, $actions);

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.