Task #80319
closedForm element identifier can't be changed
100%
Description
We have a booking form where a customer can add persons. For a person there is a page defined, with all fields. We do not know how many persons will be added, but at least one. For this we made a conditional page, where we look at a button value. If this button is clicked (instead of the regular submit button), a page will be added to the form, which is a copy of the "person" page. We already have a page with all the fields, so copying would be the best.
However, copying pages and elements is not possible, because the form element identifier can't be changed. It's protected and there is no method to change it, only to get it.
Although there are many constructs possible to get this done (subclassing all elements for instance) it is desired to do this at the most simple way.
Adding a public method setIdentifier()
to the AbstractRenderable
would be sufficient.
Updated by Ralf Zimmermann over 7 years ago
- Tracker changed from Feature to Task
- TYPO3 Version set to 8
Updated by Gerrit Code Review over 7 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/52076
Updated by Ralf Zimmermann over 7 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 3664b27d87fd2054f5a32c60bedc65c6ae939007.
Updated by Riccardo De Contardi about 7 years ago
- Status changed from Resolved to Closed