Populates the form for a class.