Conditional trigger to toggle form elements between optional and required