Announcement

Collapse
No announcement yet.

if statement in email

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

  • if statement in email

    hello
    i have 3 fields (enum) with 2 values (yes no)

    i need to display value in email instead of
    Code:
    {{#if inscMardiEnum}}Mardi{{/if}} {{#if inscMercrediEnum}}Mercredi{{/if}} {{#if inscJeudiEnum}}Jeudi{{/if}}
    how i can check if inscMardiEnum == yes ? in email
    regards

  • #2
    you can do it like below:

    Code:
    {{#ifEqual inscMardiEnum yes}} Mardi {{/ifEqual}} {{#ifEqual inscMercrediEnum yes}} Mercredi {{/ifEqual}} {{#ifEqual inscJeudiEnum yes}} Jeudi {{/ifEqual}}
    hope it helps, you can read more about this on pdf hence pdf and email use the same engine https://docs.espocrm.com/user-guide/printing-to-pdf/

    Thanks
    Rabii
    Web Dev

    Comment

    Working...
    X