function validateRequired($sValue, \Formal\Form\Morphology $oMorpho, \Formal\Element $oElement) { if (trim($sValue) !== "") { return true; } return "<strong>" . $oElement->option("label") . "</strong> is required."; }