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.

General Questions /

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

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

Item filtering


Go to End


2 Posts   936 Views

Avatar
isolated

Community Member, 28 Posts

13 March 2014 at 8:41am

Hi,

was playing with ss forms and got into a problem, that after form submission i dont get expected items.

In the object i added additional field dropdownfield with 3 values.

As well created three new PageType extends Page, where pagetype has one extra field (one out of the three dropdownfield).

The form consist of the field type and submit button. After submission, i perform PageType filtering by selecting matching records etc extraField = 1.
But at this point, when i try to return data from the form, i fail.

Avatar
isolated

Community Member, 28 Posts

13 March 2014 at 9:25am

To extend what i have in the form

return $this->customise(array(
'Results' => $pages
))->renderWith(array('Page'));