Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Form Questions /

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

Search in CMS table


Go to End


2 Posts   1559 Views

Avatar
mydanceland.com

Community Member, 2 Posts

12 August 2010 at 1:47am

Edited: 12/08/2010 1:47am

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!! :....(

Avatar
tr

Community Member, 4 Posts

25 August 2010 at 11:00am

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