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.

Form Questions /

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

Custom form validation message


Go to End


3 Posts   2677 Views

Avatar
Monty

Community Member, 19 Posts

7 July 2010 at 11:31am

Edited: 07/07/2010 11:32am

Hi there. I have set up a custom form with validation on my contact page. How do I change the validation message?

Thanks for your help.

Monty.

Avatar
Carbon Crayon

Community Member, 598 Posts

17 July 2010 at 11:17pm

Hi Monty,

The simplest way to do this is to use jQuery instead of the built in js validator, it gives you a whole lot more control.

Tutorial here:

http://www.ssbits.com/using-jquery-for-form-validation/

Hope that helps

Aram

www.ssbits.com - SilverStripe Tutorials, Tips and other bits

Avatar
Monty

Community Member, 19 Posts

18 July 2010 at 10:25am

Thanks for your time Aram. Much appreciated.

Cheers,
Monty