I want to make read-only to the related field search box on change other field or on page load in record.js
You could use Dependency Actions as they are Extensible and remove the possibility of losing your changes in the record.js file if it is overwritten by another package.
Agreed with John Boyes, dependency actions are the way to go.
Agreed with John Boyes, dependency actions are the way to go.