Hi, I’ve seen many posts suggesting applying color to each event in the Calendar plugin, but that is not what is required. In the Calendar plugin, the events are applications for employee leave.
A data type was created for the Type of Event/Leave as shown below.
The app allows users to create applications and choose the type of leave that is the event, ie. Vacation, Sick or Casual.
I want the app to dynamically show each Leave Type by its respective hex color.
The script used that won’t show in red is
The result shows the first hex color due to choosing “first item”. This proves there is a possibility of extracting the colors from the ‘lookup’ table created. What option should I use so I would not be in the red to achieve the desired result.