My understanding of the problem is that your validation is also being carried out when you edit a record and you only want it carried out when you create a new record. Event 21 is for filling hidden fields and I'm not sure it is appropriate to validate copied records. Maybe that is the reason that you are getting this validation carried out when you edit data. What's more, I think event 05 should be triggered when you create a new entry whether or not it is a copy. So maybe removing the event 21 entirely would solve your issue.
↧