boltforms icon indicating copy to clipboard operation
boltforms copied to clipboard

[RFC] Contenttype updating via form

Open zomars opened this issue 5 years ago • 3 comments

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?

zomars avatar Dec 17 '19 17:12 zomars

IIRC this already works if you pass in a param called id. At least it did in previous versions.

SvanteRichter avatar Dec 19 '19 22:12 SvanteRichter

Really? If it is this changes everything! 😮

zomars avatar Dec 19 '19 22:12 zomars

Correct, using this already myself too.

https://github.com/bolt/boltforms/blob/4.2/src/Submission/Handler/ContentType.php#L106-L117

rossriley avatar Dec 23 '19 02:12 rossriley