Script error message when an option is selected in a dropdown list due to a condition is attached