Hide Create Button from Duplicate alert popup
Collapse
X
-
Tags: None
-
I have upgraded to V8.0.0.0 today as I saw the duplicate check is now available. I have selected the fields that should be checked for duplicate, however I seem to be still missing something as I can stil create duplicate entries. To give a background, I am using the default name field as my serial number field, as such this
Changing the source code is a bad practice.
In version 8, all base views are packed into large packages espo-crm.js и espo-main.js and, accordingly, without rebuilding these packages, the changes you make do not have any effect
Solution options: your own custom detail view for entities that require disabling the button and a custom duplicate view or checking and not allowing saving as described in the link provided -
Another solution is monkey patching. I described this method on the forum a few times. With it, one can modify any frontend class. It works but should be the last resort.If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.Comment
-
Add custom css file and put the following css style:
Code:div[id^="duplicate-modal-container"] .modal-footer button[data-name="save"]{ display: none }
Comment
Comment