mProjectsCode / obsidian-meta-bind-plugin

A plugin for Obsidian to make your notes interactive with inline input fields, metadata displays, and buttons.
https://www.moritzjung.dev/obsidian-meta-bind-plugin-docs/
GNU General Public License v3.0
390 stars 33 forks source link

Validating Input Fields #367

Open svenschuldt opened 3 days ago

svenschuldt commented 3 days ago

Is your Feature Request Related to a Problem?

Validating an input field based on pre-defined context or on comparison (dates).

Describe the Feature you'd Like

How do I validate e.g. two input fields in comparison? Example:

Project Start Date: INPUT[date:project-start] Project End Date: INPUT[date:project-end]

In 99.9% of the cases, the end-date has to be after the start-date - is there a function to validate input fields by comparison (or other elements such as min./max. value, etc.)?

Additional Context

This can be used in many aspects, such as dates, values, etc.