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.

Archive /

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

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

Custom OnCompleteMessage


Go to End


984 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?