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


Go to End
Reply


10 Posts   1018 Views

Avatar
swaiba

Forum Moderator, 1808 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, 198 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