Jump to:

1976 Posts in 1306 Topics by 607 members

Form Questions

SilverStripe Forums » Form Questions » Search in CMS table

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

Page: 1
Go to End
Author Topic: 866 Views
  • mydanceland.com
    Avatar
    Community Member
    2 Posts

    Search in CMS table Link to this post

    Hi All!!

    I have a CMS HasManyComplexTableField with fields and I have thousands of records there. I want to have fields above to set some filter options, for example

    TextField('Country')
    FormAction(???)

    If I press Submit button I will see my table with appropriate records by country (less then thousands). I've trying to solve this problem all over the day but I couldn't :...((((

    Also I don't know how to make this functionality in SilverStripe:

    In mypage.php is
    <form action="mypage.php" method="get">
    First name: <input type="text" name="fname" /><br />
    Last name: <input type="text" name="lname" /><br />
    <input type="submit" value="Submit" />
    </form>

    i don't know how to put "mypage.php" into FormAction(...) instead of function name.

    If I use Director::redirectBack() I loose all my POST, GET data ((

    Help me pleeeease!! :....(

  • timon
    Avatar
    Community Member
    4 Posts

    Re: Search in CMS table Link to this post

    Maybe you could use DataObjectManager instead of the ComplexTableField. It has filtering capabilities.

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