unnamed -- if name field is Null replace with *******

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ryan_WHR
    Member
    • Feb 2016
    • 37

    unnamed -- if name field is Null replace with *******

    unnamed -- if name field is Null replace with *******

    ok so in my opportunities entity I don't currently ever use the name field so when the opportunity is created it represents it as a unnamed which of course tells the system that there may be duplicates.

    Please point me in the right direction to the code this so I can replace unnamed with the records addressstreet field

    so when i save a new record it saves the adressstreet as the name automatically



    Thanks Guys
    Ryan
    Last edited by Ryan_WHR; 05-25-2016, 09:30 PM.
  • yuri
    Member
    • Mar 2014
    • 8627

    #2
    You can download Real Estate extension from our website and look into code for example. In can be done in beforeSave method in Repository class.
    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

    • Ryan_WHR
      Member
      • Feb 2016
      • 37

      #3
      Then should i add the before save hook to the /Espo/Custom/Repositories and save as Opportunity.php ?

      Comment

      • yuri
        Member
        • Mar 2014
        • 8627

        #4
        Yep. .
        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

        Working...