Is it possible to populate a quickform from the API?
There is no “API” for quick forms, no. But you may be able to populate and submit the form programatically if you can get the CSRF token that Drupal’s Form API generates. I’ve never tried it though.
Broadly speaking, quick forms just create records that follow a convention, and you can create the same kinds of records yourself via the API directly, without going through the form.
This would be part of the value of documenting conventions that I’ve talked about in the past: Documenting conventions
Ah. Ok.
My plan was to make a TUI-app for the terminal for populating quickforms.
Setup quickforms in web UI, and populate them from a superfast TUI.
thanks
This got my gears turning… ![]()
Wouldn’t it be cool if you could define a “data entry pattern” in a declarative way (eg: via YAML), and then have that automatically generate both a UI (quick form and/or Asset Link plugin), API (JSON:API resource or custom REST endpoint, along with JSON Schema), and CSV importer? The same could be used to build a local TUI.
This “data entry pattern” would essentially be a codified convention.
That would be awesome.
Spun off a dedicated topic: Declarative data entry conventions