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

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

    #1

    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
    EspoCRM product developer
    • Mar 2014
    • 9698

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

    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
        EspoCRM product developer
        • Mar 2014
        • 9698

        #4
        Yep. .

        Comment

        Working...