It's not possible to do conditional validation of form fields with HTML only. At most you could manipulate the DOM with javascript to add the required
attribute to the <input>
element when necessary (i.e. in an onchange
event handler for the radio button).
Remember it might be useful to provide fallback behavior for the required
attribute for older browsers without HTML5 support.
Note: This other question is pretty much about the same.