Current Day Color doesn't work

As I’ve done for day name and for month i would set current day number in a specific color. This doesn’t work only for day number. How could I fix this? What’s wrong?

Thanks

It seems like a bug in the standard ‘Day of week num’ series mode. To fix this and get the correct highlighting, switch Series Mode to Custom and use these formulas:

Formula: $df(d, a + (index - (df(f) - 1)) + d)$

Current: $df(f) - 1$

Count: Set this to 7.

1 Like

Thanks!

However as you can see it displays 16 in all the 7 days. How to fix?

Please send screenshots of what’s inside the ‘Formula’ and ‘Current’ fields.

To make it work, your Formula must include the index variable, otherwise Kustom will just repeat the same number 7 times. Double-check if you copied my formula exactly:

$df(d, a + (index - (df(f) - 1)) + “d”)$

Or you can upload your KWGT file here and I’ll take a look myself.

I can’t upload file and can upload 1 image per post. This is 1 of 2

This is 2 of 2

If you have an email i can send you

[email protected]

Sent, thanks a lot for yor time

Your error was in the quotation marks. You used ‘curly’ (typographic) quotes like “d”, which Kustom can’t read. It only accepts straight quotes.

I’ve fixed your KWGT file with the correct syntax. I’m sending it back to you now.

For a single character like d (day), you don’t even need quotation marks at all. I usually use them by habit from programming, but in Kustom, you can just write:

$df(d, a + (index - (df(f) - 1)) + d)$

This is cleaner and prevents errors when copying and pasting. Just type it manually in the editor!

1 Like

Thanks a lot, it works! I’m a noob in this and You’re outstanding!

Glad I could help! That’s a classic trap with web copying those curly quotes look nice but kill the code.:+1:

1 Like