added a type='text' to the getTeachers function, so that it works with custom lists as well as external lists.