Conditional manadatory

Conditional manadatory



How do I implement Conditional Mandatory in a form?
for example, if one field's value ==  XYZ,  then another field becomes Mandatory.  


How can I implement this? Thanks.!!!!