src/ItePHP/Component/Form/FormField.php
public function setRequired($flag){
		$this->tags['required']=$flag;
		if($this->validator){
			$this->validator->setOption('empty',!$flag);
		}
	}
public function setRequired($flag){
		$this->tags['required']=$flag;
		if($this->validator){
			$this->validator->setOption('empty',!$flag);
		}
	}
Set html tag required

@param bool $flag - if true then required else optional