Btw there is this useful thread explaining how to set the Date range control’s value using buttons, to yesterday, today, last week and last month, but I want to set it to “everything” and there is no solution to that there.
I’ve found a way to achive the desired outcome by setting the first date to the lowest existing and the second to highest (from the table I’m filtering).
Which works pretty much the same but it’s not up to date, for example if I create a new task with due date outside that range it won’t be included until I click the button again.
Yes indeed, how do I do that with a button press?
If you can see that little “refresh” button next to the date range selector, I want to use that button to set the range to “Everything” so I can save myself 1 click.
I want to change the value of the Date range control using SetControlValue() action with a button.
My table filters are already set to show what’s selected in the actual “Date range control”.
I want the reset button to set control’s value to “Everything” from whatever date range is selected.
I don’t think I understand. Here is my table’s filter related to the date range:
I use the toggle control that’s next to date-range control to decide when to use the date range and when not.
Is this what you were referring to or am I missing something?
This is so I can actually not use the date range in table’s filter if it’s set to “Everything”, so that it can show rows without set date. Because when It’s set to “Everything” it doesn’t show rows without any date value.
As you start to explore Coda more the biggest piece of advice i have to give you is to explore data types, data chips, and outputs.
If you notice, the green chip you have shows that its data type is a list of Dates. Therefore, within that green chip is at least one, but more than likely, at least 2 date-values.
Therefore, choosing contains() as a formula was a good move as its is able to check if a list contains a certain value. Where you went astray was seeking if it contained the value “Everything” which is a text value. A list of date values cannot contain a text value
When you simply type in and reference the date-control, it shows you that the two values in its list are 1/1/1 and 12/31/3999. Therefore, you could try the formula below to check if the current value is everything