Change Field Label name using Formula or Something Else

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • esforim
    Active Community Member
    • Jan 2020
    • 2204

    Change Field Label name using Formula or Something Else

    v7.4.3

    Is it possible to change the Label somehow? I know with PDF we can using some sort of Translation feature. But what about Details/Edit view, can we change the label dynamic/live?

    For example, if the
    Type = Vendor

    I would want the price field to be "Sale Price", and if it

    Type = Purchaser

    I want the same price field to be name "Purchase Price". Is that possible? Or too complex? Or stupid idea...
  • rabii
    Active Community Member
    • Jun 2016
    • 1250

    #2
    not possible the framework doesn't allow such functionality now.
    Rabii
    Web Dev

    Comment

    • item
      Active Community Member
      • Mar 2017
      • 1476

      #3
      One idea :

      in entity manager : make field visible

      3 fields : SalePrice, PurchasePrice, Price (default = 0)
      Price is calculed field = SalePrice + PurchasePrice

      So if Vendor, disable field PurchasePrice
      if Purchaser, disable field SalePrice.

      On listView, you only list Type and Price
      Last edited by item; 05-04-2023, 08:14 PM.
      If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​

      Comment

      • esforim
        Active Community Member
        • Jan 2020
        • 2204

        #4
        I have too many field at the moment, and in future I'll create a bunch of more "ID" field as well so I rather not have the too many field like this.

        I think for now I just Force everyone to share the same field and re-label it instead.

        And it not just a few field that need to be change, there is many label, so I was being hopeful.

        Anyway, thank you guys!

        Comment

        Working...