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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Archive /

Our old forums are still available as a read-only archive.

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

Custom OnCompleteMessage


Go to End


929 Views

Avatar
thejackel

Community Member, 33 Posts

26 June 2008 at 12:20am

Hello,

I've built a custom form with my own custom submit method.

It all works well apart from the submission message.

Can I create an OnCompleteMessage tab (just as a userdefinedform has), in the admin system what determines the submission message?

Or is their some other way to define a custom message for complex forms?

Currently, in my submit method I have a redirect like this:

Director::redirect('publication-request-thankyou/');

Their is also a page - publication-request-thankyou -in the admin tree what i'm using to display a custom message.

This doesn't work either. I just receive the default 'Thanks for your submission.' message.

Anybody any ideas please?