signebedi / libreforms-fastapi

FastAPI implementation of the libreForms spec
GNU Affero General Public License v3.0
1 stars 1 forks source link

[ui] Allow prefilling form fields using URL params #369

Closed signebedi closed 1 month ago

signebedi commented 1 month ago

If URL params are passed on the /create endpoint for a given form, we should try to capture these and set them as the "default" value...

signebedi commented 1 month ago

SCOPE: We've applied this feature to the create route, but not to duplicate or update because doing so runs contrary to the specific goals of those two separate routes. The engineering overextension that this might beget is that the generateLookup() functions are different in, on the one hand, the create jinja2 template, and, on the other, the duplicate and update routes, the latter of which include no logic to pull URL params.