How to make form field required if another one is true?

I am trying to change form field to check if dropdown field is true, and if correct option is selected, it makes next field required.
Another option would be to hide the next field if the dropdown option is not correct (whatever is easier to do).