LIquid if/else not working

2 Comments

  • Graeme Carmichael
    Community Moderator

    Andrew

    I don't believe that the problem is the IF condition, but that the signature field does not recognise the ticket.group.name placeholder.

    I can reproduce your results. The condition works in ticket comments but not signatures.

    If you take a look at the first comments here  you will see a similar request by Sean. The article says that signatures support 'some placeholders' but does not go into details.

    0
  • Andrew J
    Community Moderator

    Hmm... that's a bit annoying.  But I see the same DC does work (somewhat) in the comment ie. the liquid logic works but the result is rendered badly by markup-HTML conflict.

    I've got another DC that builds the signature and if I wanted to use {{agent.name}}  |  {{ticket.group.name}} I would expect that to work...

    After all the placeholder is used in a DC, and the DC works...

    And the group name works in DC in other situations - sooo... the restriction is in there on purpose or is there some mix up?

     

    0

Please sign in to leave a comment.

Powered by Zendesk