I have a conditional form field. It is only shown based on the value of another field. However, i want to make it a required field only when it is shown. As a result, i do not want to set it as required in the usual way using phpmaker. How can I do that?
use the ->Required attributeif($this->IsFieldSet)
$this->otherField->Required = true;
Where should this code be placed?