I have a form that starts off with a select box with two options. Required fields are determined by which of the 2 options is selected. How can I write to the form as soon as the option is selected so it has a red asterisk next to the input field to show it is required.