Refactor getFieldValue (support AttachementFile et CheckBox)