Closed rask closed 6 years ago
Sometimes? More like always :')
I think registering forms from PHP is something that the "core" should do, so I'm voting for that. If someone disagrees, surely we can at least add hooks for that.
I definitely agree that core should support usage of static forms from filesystem. Usage of version control system is good practice and wplf needs to support that.
@rask Would you like to make a PR?
I will need to allocate some time to this but I can start working on this quite soon presumably.
Oh this was left open. I'll close it.
Sometimes projects have static forms that work better when committed into project source code.
Would it be overkill to allow defining forms in a regular HTML file which would be imported to libre-form via a registration hook. Otherwise the form admin would be available but the form HTML field would be set to
readonly
with a note about which static HTML template file is being used in it.If this would work better as a standalone plugin are the hooks in place to implement such a behavior and if not would it be OK to add those?