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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Policy agreement


Go to End


10 Posts   1801 Views

Avatar
swaiba

Forum Moderator, 1899 Posts

3 May 2012 at 1:45am

ah well another lool at the documentation says it returns a "ValidationResult" instead of just true/false - try

1. satsifying your self that you coudl always force it to return false and the error message - e.g. if (1)
2. interpreting ValidationResult for the real answer and using that in the "if"

Avatar
cumquat

Community Member, 201 Posts

3 May 2012 at 7:43pm

Ok i'll have a play and see if i can get it working, will paste the code up.

Cheers for your help.

Mick

Go to Top