How to require a field based on a selection.