So as of now there is a functionality where one of the custom field would have the reference of custom record. So that custom record would get create automatically via script i developed based on some conditions of the line and set the newely created record reference to that custom field in the line level. So with this copy previous button that custom record is getting copied to the newely copied line which i dont want to. Each line will/should have a new custom record created.