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
187 stars 14 forks source link

Form Modification #228

Open melmennn opened 6 months ago

melmennn commented 6 months ago

Hello @danielo515,

Firstly I must say thank you so much for this plugin that you made, it ease my data storing. I don't have any experience in coding either a simplest programming language and I'm not really have lot knowledge in Obsidian but I figured it out how to make it work by try and error. This is my first time to write an issues in GitHub, so if any mistake that I made in the writing I'm sorry.

I'm writing this to ask you about 2 things:

  1. Toggle: true > textArea
  2. Editing the current metadata using form that has been used in creating the metadata

Before that I need to mention that I'm not a native English speaker, excuse my grammar if there's any confusion. If any of my requests below has been pointed before I apologise for overlooked.

Toggle: true > textArea

When creating a form I noticed that the Toggle option didn't have any additional option like when you toggle it on a text area will pop-up for you to fill in. I'm hoping that if you could add (if toggle is true, you can add option under it). For instance I just add under the toggle like this: image

Editing the current metadata using form that has been used in creating the metadata

It's like fill in the form but I can edit the form back in the note itself rather overwrite option in QuickAdd or edit the metadata in the note. I'm hoping this feature because sometimes I need to look back in the form for me to add new property in the metadata, I tried overwrite option in QuickAdd but when I add new little data in the form it replace all of the metadata. image

Outcome

Thanks to you again @danielo515 for this incredible plugin and you did a great, powerful and easy-to-understand plugin for a person like me. Below is my final test and it worked to create what I want

https://github.com/danielo515/obsidian-modal-form/assets/154692251/12c6fa4b-7e59-4e9a-bb94-4b3aa0f8d58e

Best regards, Mel

Emilianozuniga commented 6 months ago

Hello @danielo515 and @melmennn. I find it super practical to be able to edit the form again. And in the same way, I thank you very much for the modal forms plugin, it is wonderful. Thank you.

danielo515 commented 4 months ago

Your first request looks a lot like dependent inputs. It means that, based on the value of one input another input is made available or not. I think that is already requested in #225, right? I think you don't mean to only do it for text-areas but for any other input. Regarding your other requirement, I think it should be doable if you only want to edit the metadata as I already requested (yes, I do feature requests myself) in #165 . If a more advanced "edit" is required, I think that is out of the scope of this plugin. I think the latter is already currently doable if you are willing to write some code, but that may be out of reach of many people.