Auto fill a field with a condition form other fields