Announcement

Collapse
No announcement yet.

Print different output for different team

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

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

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


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

      Comment


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