Announcement

Collapse
No announcement yet.

Re-using duplicate modal

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Re-using duplicate modal

    Hi there,

    I recently discover that espo was showing you a modal saying that the "Contact" you're trying to create has the same name as an already existing one.

    I would like to re-use the same modal (and display) for the field "phoneNumber" of the entity "Contact".
    I already search for the source code of the modal but wasn't able to find something.

  • #2
    Sorry can't help but there is a tutorial on how to create a new Duplicate checker for other custom entity. Perhaps learning that will help you add more "duplicate check field"

    Add Duplicate Check to RealEstateProperty extension (OBSOLETE CODE)- https://forum.espocrm.com/forum/gene...king#post68196 - Newer reference post: https://forum.espocrm.com/forum/deve...9746#post89746

    >https://github.com/o-data/EspoCRM-Le...nd-Design/wiki

    Comment


    • #3
      Originally posted by Firyo View Post
      Hi there,

      I recently discover that espo was showing you a modal saying that the "Contact" you're trying to create has the same name as an already existing one.

      I would like to re-use the same modal (and display) for the field "phoneNumber" of the entity "Contact".
      I already search for the source code of the modal but wasn't able to find something.
      It is not just a view that needs to be customise the duplicate has a backend class that checks if there are any duplicate. anyway as you can see here the next version 7.5 will use a listSmall for listing each entity's duplicate. if you want you can clone the changes and apply them to your current instance just be careful.

      here is the link https://github.com/espocrm/espocrm/c...687bb35aff8d8a

      As you can see this will allow you just to add field on listSmall of the entity and it will be applied on duplicate checking modal.

      Good luck
      Rabii
      Web Dev

      Comment


      • #4
        Thanks both of you, I've followed the https://docs.espocrm.com/development/duplicate-check/ article.
        I edited the PHP code and added my custom restriction and I worked like I wanted.

        Comment

        Working...
        X