Color in calendar

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tothewine
    Active Community Member
    • Jan 2018
    • 385

    Color in calendar

    How can I change the calendar's color of meetings with respect to a "type" field of a custom entity?
  • lazovic
    Super Moderator
    • Jan 2022
    • 852

    #2
    Hi tothewine,

    Perhaps the following thread will be useful for you: https://forum.espocrm.com/forum/gene...-on-the-status.

    Comment

    • tothewine
      Active Community Member
      • Jan 2018
      • 385

      #3
      I tried this formula but it gives me an error on the parentheses

      ifThen(entity\isAttributeChanged('status'),
      ifThen(status == 'Planned', entity\setAttribute('color', '#0ea5e9'));
      ifThen(status == 'Held', entity\setAttribute('color', '#10b981'));
      ifThen(status == 'Not Held', entity\setAttribute('color', '#eab308'));

      Comment

      Working...