function _validate() { parent::_validate(); if ($this->_subsections['shirt_size']->normalized_value() == 's' && $this->_subsections['year_4']->normalized_value() < 2010) { $this->add_validation_error(__("If you want a small shirt, you should be born after 2010. Otherwise theyre just too big", 'event_espresso'), 'too-old'); } }