0

Need to make Appointments showing in different colors in the calendar

Hello and good evening to all!

I created a table with an "appointment" field for 02 different offices.
Since calendar will show all appointments for both offices, it would be great if I could see the appointment, for example, in blue for office 1 and green for office 2.

Can you please show how that can be made in Ninox?

Thanks in advance for all your assistance and support!!

3 replies

null
    • Nick
    • 3 yrs ago
    • Reported - view

    Hi,

    I am using this code for that:

    ---

    let displayText := "";
    let displayColor := "";
    let displayBackground := "";
    let displayIcon := "";
    if Office = Office1 then
    displayText := Calendar_Display;
    displayBackground := "orange";
    displayColor := "blue"
    else
    if Office = Office2 then
    displayText := Calendar_Display;
    displayBackground := "green";
    displayColor := "white"
    end
    end;
    styled(displayText, displayBackground, displayColor, displayIcon)

    ---

    1. Create a formula field Calendar_Display with the desired fields showing in the calendar (e.g. Customer + " " + Time)

    2. Change the colors with your desires

    3. I don't use the displayIcon in this example.

    • Pedro
    • 3 yrs ago
    • Reported - view

    Hello Nick, good day!

    Thank you very much for your great assistance!! Your suggestion worked very fine for my projet!!
    Trully appreciated your kind support!

    • Nick
    • 3 yrs ago
    • Reported - view

    👍

Content aside

  • 3 yrs agoLast active
  • 3Replies
  • 457Views