Adding custom field widget to groups by their type.