Announcement

Collapse
No announcement yet.

Function to get the label of an enum attribute value

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

  • axyl
    replied
    Hmm, I think this has to work without the Complex Equations structure.

    So just using formula's won't do it. Complex Equations, seem to me, to be some kind of text -> SQL structure?

    Leave a comment:


  • item
    replied
    if understand, label is language dependant, maybe : https://docs.espocrm.com/administrat...ranslateoption

    Leave a comment:


  • rabii
    replied
    you can try the formula array\at(LIST, INDEX), e.g:

    Code:
    $status = array\at('status', 1); 
    
    CONCAT:(assignedUser.firstName, ' - ', $status)
    i have not tested this so you might try it and see if it works.

    Leave a comment:


  • axyl
    started a topic Function to get the label of an enum attribute value

    Function to get the label of an enum attribute value

    I have a CONCAT function that's joining two attribute values, but I'd like the values to be the label value rather than the internal value of an enum attribute. Any ideas on how I might be able to do that?

    i.e.
    Code:
    CONCAT:(assignedUser.firstName, ' - ', status)
    I'd like the value of status to be the label value.

    Cheers.
Working...
X