I've worked this one out myself - and it was pretty obvious: use a
beforeValidate method. I've included one below in case anyone else
searches and needs the answer
/**
* Returns true if all is ok, false if something failed validation
*/
function beforeValidate() {
echo '';
Hi all,
Say I have a check box and a text field on a form. If the check box is
checked the form has to have a number in it. If the check box isn't
checked then it must be empty. Does anyone know how to do this
validation in 1.2? I could write a custom validation method but I
can't work out how to