Project

General

Profile

Actions

Task #80319

closed

Form element identifier can't be changed

Added by Patrick Broens over 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Form Framework
Target version:
Start date:
2017-03-17
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.0
Tags:
Complexity:
no-brainer
Sprint Focus:

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.

Actions

Also available in: Atom PDF