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.

Customising the CMS /

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

InlineFormAction and 404 error


Go to End


1722 Views

Avatar
tbilyn

Community Member, 9 Posts

23 September 2010 at 3:01am

I have a problem with InlineFormAction.
I add InlineFormAction field into getCMSFields function:

$fields->addFieldsToTab( 'Root.Content.Leads', $filter_action);
$filter_action = new InlineFormAction('doLeadsFilter','submit');

When I press on it into admin panel it goes to url: http://<my_base_url>/admin-custom/doLeadsFilter?ID=11&ajax=1 and return 404 error page, and show Server Error in the bottom of the page.

What problem it can be?
I am also don't sure where should I put doLeadsFilter function?