Checkbox in tables?

I can create checkboxes with - [ ] some text.

However it doesn’t work in tables, like below:

Tasks
- Some tasks
|       | Tasks      |
| ----- | ---------- |
| - [ ] | Some tasks |

Possible to make it work?

I don’t recommend to bother inserting tasks to tables but you can use single line html code


|                                                                                                                        |                                                                                                                        |
| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
| <ul style="list-style-type: none;"><li><input type="checkbox"> item 1</li><li><input type="checkbox"> item 2</li></ul> | <ul style="list-style-type: none;"><li><input type="checkbox"> item 1</li><li><input type="checkbox"> item 2</li></ul> |
| <ul style="list-style-type: none;"><li><input type="checkbox"> item 1</li><li><input type="checkbox"> item 2</li></ul> | <ul style="list-style-type: none;"><li><input type="checkbox"> item 1</li><li><input type="checkbox"> item 2</li></ul> |
|                                                                                                                        |                                                                                                                        |

<ul style="list-style-type: none;"><li><input type="checkbox"> item 1</li><li><input type="checkbox"> item 2</li></ul>

You can toggle checkboxes in reading mode however list-style-type: none seems not to work in reading mode (I don’t know why).

 

See emoji keyboard in Windows 11 or in Mac. Raycast (on mac) also offers emoji picker.


| ⚪ task 1<br>🟢 task 2<br>🟠 task 3<br> |                                    |
| -------------------------------------- | ---------------------------------- |
|                                        | 〰︎ task 1<br>✅ task 2<br>✴️ task 3 |

 

It seems that Github doesn’t support checkboxes in tables either (or they are problematic) (https://stackoverflow.com/questions/47344571/how-to-draw-checkbox-or-tick-mark-in-github-markdown-table).

 

If you want to query tasks in Obsidian then don’t input tasks in tables.

1 Like

Right. Thanks for the advice. Will probably ignore making checkboxes work in tables for now.

No. A “checkbox” is a task list item, and you can’t put a list in a table cell. If you really wanted to, you might be able to put the list elsewhere and embed it in the table, but you won’t be able to check the checkbox there so that’s probably not what you want.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.