replace %value% in error messages with value of field