Color in calendar

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

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

      #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


      • victor
        victor commented
        Editing a comment
        Because you copied it incorrectly, pay attention again to how the author rabii describes it, copy it and do everything absolutely identically. And when everything works - you can experiment with other colors and statuses.

        Here is another topic with working options: https://forum.espocrm.com/forum/gene...-on-the-status.
    • tothewine
      Active Community Member
      • Jan 2018
      • 386

      #4
      I was able to manage the color of meeting only in creation, but not in update, how can I do it?

      Comment

      Working...