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.

General Questions

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

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

Policy agreement


Reply

10 Posts   867 Views

Avatar
swaiba

3 May 2012 at 1:45am Forum Moderator, 1796 Posts

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

3 May 2012 at 7:43pm Community Member, 198 Posts

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

Cheers for your help.

Mick