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.

General Questions

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

Item filtering


Reply

2 Posts   155 Views

Avatar
isolated

13 March 2014 at 8:41am Community Member, 28 Posts

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

13 March 2014 at 9:25am Community Member, 28 Posts

To extend what i have in the form

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