Yes, this code works pretty good. But if the user chooses one of the drop down options from the first drop down, then changes their mind, and switches the first drop down to a text field, it won't change. That's where the problem lies.
And yes, I realize toggleField() is sloppy, and I even...