Hi guys,
I am using the Full Calendar plugin and would like to colour events so that each team member has a unique colour.
I am building a CRM so an Admin user has team members. I am thinking there are two way I could maybe do this;
-
When a new team member is added, I could assign a colour to that team member. Since there would only be a maximum of 10 team members I could create 10 colours and each team member would get a colour, picked randomly. But how would I set that up and then assign to the calendar?
-
Team members are assigned a ‘Role’ on signup, so I could give a role a colour and assign the colour to the calendar?
I’ve been playing with this but keep getting stuck so any ideas welcomed!
- When a new team member is added, I could assign a colour to that team member. Since there would only be a maximum of 10 team members I could create 10 colours and each team member would get a colour, picked randomly. But how would I set that up and then assign to the calendar?
You need to add a ‘Colour’ field to the Event datatype to store the event colour. You can set that when you create the event, based on the team member’s colour.
Then just set the calendar event’s colour to the Event’s Colour.
- Team members are assigned a ‘Role’ on signup, so I could give a role a colour and assign the colour to the calendar?
Yes, you can set a colour for each Role (in an option set, for example), then use that to set the colour field on any event created for that team member.
1 Like
Thank you @adamhholmes I will give that a go 