generating fieldState enum