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:

  1. 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.

Controls operate on a per-doc (versus per-user) basis, so any filtering you do using controls will be visible to any other collaborators in your doc. If you’re looking for an easy way to set (or reset) a default value, use the “set control value” action. You can access this action in buttons and automations to configure actions like clearing all applied filters to show all of your data in a single button click (vs. multiple clicks within a control), or inputting default text in in a textbox control at a set time and date via automation.

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.

Did this answer your question?