try to setup the field type automatically detecting the value type