danielo515 / obsidian-modal-form

Define forms for filling data that you will be able to open from anywhere you can run JS
https://danielorodriguez.com/obsidian-modal-form/
MIT License
175 stars 13 forks source link

[Feature request] dynamic group list #255

Open danielo515 opened 2 months ago

danielo515 commented 2 months ago

Is your feature request related to a problem? Please describe.

I want to have a group of inputs whose number is variable, adding more or less instances of each group at will.

Describe the solution you'd like

Ideally it should allow to group any of the existing inputs, making it like a dynamic nested form.

Additional context

To give an example usage. Let's say that you have a form to create grocery lists. Each item requires a name and an amount. I want to add as many rows as things I need to buy before submitting.

Not sure if the outcome should be an array of values or prefixed/suffixed fields

Mara-Li commented 1 week ago

Come to here for the same FR! So I can create preconfigured list usable in template. I see something like an array of value in form of: {[name: string]: {object}}[].

It will be could if we can "use it in a template", for example: Use it [input1] and do [input2] When the result is called, simply we could use the {{variable}}, who will paste: the list (as - list) like:

- Use it [value] and do [value]
- Use it [value] and do [value]

ie, some of "form in form"