Is it possible to create a field with conditions?