I have one controlling picklist of subject and dependent picklist teacher. On the basis of subject picklist teacher picklist changes. I want that teacher field should be required only when teacher picklist have some values to select, if it does not have any values it should not be required.
How can I implement it declaratively?