Hi,

I've got a custom Zend_Form with two fields ("id" and "name"), which are
Zend_Form_Elements.

I need to validate the "name" field. To validate the "name" field, I need
the "id" field value.

I don't know how I can implement this dependency.

I think I need to write an own validator for the "name" element, which will
call the "getValue()" method of the id element in its isValid() method, so
that I can validate. But I don't know how to access the "id" element within
the "name" validator.


-- 
Regards,
Thomas


Reply via email to