Hi everyone,
I’m using ModalForm to create a new note and I’d like to know if it’s possible to dynamically filter Dataview field options based on the value selected in a previous field within the same form.
In my case, the form has three fields, all of which are type: dataview:
Customer – displays a list of clients (this works fine)
N-offer – should display only the offers related to the selected client
Description – should display only the descriptions related to the selected offer and client
Currently, each field shows all possible values.
What I’d like to achieve is a chain of filters, where:
To my knowledge a second query cannot access the result(s) of a previous query in Modal Form.
But it’s been a while since a played around with it.
If you ask the dev, he may have a solution or may even implement this.
Feature Request form:
Yes, it is possible.
You can access the current form values using a special variable named form.
Take a look at the docs for examples: Dataview Integration - Obsidian Modal Form docs Let me know how it goes, it is quite an advanced feature