Project

General

Profile

Actions

Task #80319

closed

Form element identifier can't be changed

Added by Patrick Broens about 7 years ago. Updated over 6 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 #1

Updated by Patrick Broens about 7 years ago

  • Description updated (diff)
Actions #2

Updated by Ralf Zimmermann about 7 years ago

  • Tracker changed from Feature to Task
  • TYPO3 Version set to 8
Actions #3

Updated by Gerrit Code Review about 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

Actions #4

Updated by Ralf Zimmermann about 7 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #5

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF