Make a field required based on answer to another field

Make a field required based on answer to another field

Is there a way to make a field entry required based on the input of another field? If so, how can that be done?
Thanks