If you have more than one checkbox property on a note, only one shows as checkbox type
What happened?
I have a note with multiple checkbox property, but Project only shows one of them as a checkbox in fields. The rest are shown as text fields.
What did you expect to happen?
I expect all of the checkbox properties to show as checkbox type fields in Project.
How can we reproduce it (as minimally and precisely as possible)?
- Create a project that has some test notes.
- Give the notes more than one checkbox property.
- See if the fields in the project view all show as textbox
Anything else we need to know?
No response
Plugin version
1.16.3
Obsidian version
1.4.1
OS
macOS
This bot triages issues and PRs according to the following rules: - After 60d of inactivity, lifecycle/stale is applied. - After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied and the issue is closed. You can: - Make a comment to remove the stale label and show your support. The 60 days reset. - If an issue has lifecycle/rotten and is closed, comment and ask maintainers if they'd be interested in reopening
When the checkbox type is set through Properties, it won't perform any assumptions and just leave the field value as null. The type mapping is stored elsewhere and Projects didn't detect a field type from this.
Projects determines a field type based on existing values, if one of your notes contains an boolean value false or true, then it will be recognized by Projects. Given that, a quick fix would be toggle the checkbox after it been created in the Properties.
Proposals:
- Don't fallback to text when all the values are null or undefined. Propmt users to set the type or get type from Obsidian api
- Adapt field type system to Obsidian's metadata cache