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.

All other Modules /

Discuss all other Modules here.

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

Member Profile: setMessage after failed validation on register form


Go to End


1023 Views

Avatar
flipsidenz

Community Member, 49 Posts

1 August 2011 at 8:48pm

Hi,

I'm currently working through using Member profile for the first time.

On the registration form, I want to be able to display a warning message at the top of the form...something as simple as "You have errors in your form, please review and try again".

However, I am unsure when and where to set this message. I assume setMessage would be the correct function to use to set the message?

Hopefully someone can shed some light on how to achieve this...thanks.