Coda an alternative for Radio Buttons

Christiaan Huizer
3 min readJan 31, 2023

In the Coda community one looked for a check box logic. My contribution results in something you see below. I used buttons and they behave like radio buttons, partly due to the label logic.

radio button logic in Coda

An alternative

Although the above my appeal to you, it is not the Coda way of facilitating choices. Below you see an alternative. It is maybe a bit harder to code, but very worth while the effort.

alternative

Coda is a row based application meaning that changes take place on row level. In the above example we have bikes and cars. They each have names and we can select only car or bike. The selection takes place via a button. I lef the the column ‘select’ visible to show you what is going on. Not very much actually.

We clear the rows related to the type and next we print the name in the column “select”. That is it.

The label is like wise easy. We use the Format() function and relate it to a color and in case no color is available we use #4F4F4F, nothing fancy.

define the label

Since the choices are recorded per row, we have access to all related attributes and this allows us to set up application alike docs.

the power of a @coda button

Instead of using a check box, we have something more powerful.

My name is Christiaan and I support SMB with calculations (budgets and — Human Resource — planning) and I prefer using Coda to get the job done.

I hope you enjoyed this article. If you have questions feel free to reach out. Though this article is for free, my work (including advice) won’t be, but there is always room for a chat to see what can be done. Besides you find my (for free) contributions to the Coda Community and on Twitter.

Coda comes with a set of building blocks ー like pages for infinite depth, tables that talk to each other, and buttons that take action inside or outside your doc ーso anyone can make a doc as powerful as an app (source).

Not to forget: the Coda Community provides great insights for free once you add a sample doc.

Coda expert Christiaan about: “Coda an alternative for Radio Buttons”

--

--

Christiaan Huizer
Christiaan Huizer

Written by Christiaan Huizer

I write about how to Coda . You find blogs for beginners and experienced makers. I publish about 1 / week. Welcome!

No responses yet