set enum key for CustomFieldType