Print different output for different team

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shalmaxb
    Senior Member
    • Mar 2015
    • 1603

    Print different output for different team

    Hello, I need help again. Although trying every idea, that comes to my head all day long, I did not find a solution yet.
    I would like to output some data from a record in PDF, but the output should differ, depending to what team the record is related (I have so far four teams). One should have the value A, if its met, the others at the same time the value B.
    I tried with IfThenElse, but it does not work. It seems, that also using an operator as
    Code:
    {{If team == a}} {{output Text A}} {{else}} {{output text B}}
    .does not work.
  • esforim
    Active Community Member
    • Jan 2020
    • 2204

    #2
    See if your "team" ID show different for different team when you do a print. Just the basic formula, such as

    {{teamID}} <-- please write correct field name.

    If it different then we can work out a formula may work, if it the same then you need to use some other field.

    Comment

    • Maximus
      Senior Member
      • Nov 2018
      • 2731

      #3
      Hi.
      I believe you should check this https://docs.espocrm.com/user-guide/...o-pdf/#ifequal.

      Comment

      • shalmaxb
        Senior Member
        • Mar 2015
        • 1603

        #4
        Actually I managed to solve it with the isEqual statement. Did so many things the last weeks, that I did not remeber correctly. With ifEqual it worked as desired.
        Last edited by shalmaxb; 08-12-2020, 11:34 AM. Reason: Did not remember correctly what I did. The first reply was wrong.

        Comment

        Working...