Is it possible to make a mandatory field, NOT mandatory based on a selection in the same form?

Is it possible to make a mandatory field, NOT mandatory based on a selection in the same form?

Is it possible to make a mandatory field, NOT mandatory based on a selection in the same form?