Coda Controls give you a core set of elements to interact with and edit your data. These controls can take on several flavors like a date picker, select list, checkbox, or slider.
You've already seen many of these controls in the column formats of a table, but you can also add these to other parts of your canvas. This makes it possible to setup easily filterable views of your data.
There are 4 key parts of canvas controls:
- Insert a control at your cursor from the / menu
2. Right click on the control to rename it and set the control properties. For a select list, choose the eligible items you can select. Or for a slider, pick the min and max.
3. The selected value of a control is available in the formula language. Just hit = and the control name to see its current value.
4. You can filter a table or view by the control's value using the Matches function. This makes it easy to match not just on exact values, but also for lists and ranges.
Pro Tip: You can filter any of your tables and views based on any Control in your doc. There's no need to have it in the same page - pretty handy!
Keep in mind that when you filter tables from Controls you can use AND and OR to allow you to filter based on multiple controls and variables.