Set type of form fields