boltforms
boltforms copied to clipboard
[RFC] Contenttype updating via form
I'm just thinking out loud in here, would it be possible/feasible to pass a hidden field into a form that updates a record values instead of creating a new one?
IIRC this already works if you pass in a param called id
. At least it did in previous versions.
Really? If it is this changes everything! 😮
Correct, using this already myself too.
https://github.com/bolt/boltforms/blob/4.2/src/Submission/Handler/ContentType.php#L106-L117