Announcement

Collapse
No announcement yet.

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

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

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

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


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

      Comment


      • #4
        Yep. .

        Comment

        Working...
        X