How would I add a certain condition to a form?

I am currently trying to add a certain conditional. If a certain radio button is selected with a location then onSubmit: email a certain location’s email. How would I do this?