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

openForm should return a value if the user cancels the form #256

Closed TfTHacker closed 1 month ago

TfTHacker commented 2 months ago

Is your feature request related to a problem? Please describe. When calling the openForm method, if the user cancels the form (clicks he x to close it), it does not return a value (at least in templater). So there is no way of responding if the user interrupts the workflow.

Describe the solution you'd like openForm should still return a status indicating if the user closes the form without clicking submit. This could also be returning a null value.

danielo515 commented 2 months ago

related to #133