Project

General

Profile

Actions

Task #78821

closed

Epic #77909: Enhance EXT:form

Feature #77910: Introduce new form framework

Ext:form - Add onSubmit callback for pages

Added by Ralf Zimmermann over 7 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Category:
Form Framework
Target version:
-
Start date:
2016-11-28
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

Every Formelement run through some lifecycle callbacks which make it possible to manipulate the element on runtime.
It would be usefull to execute this callback on toplevel composit elements aka. pages.
This make it possible to dynamically add and remove elements on runtime.
At the moment, this callback is not triggered for pages.

Use this example to test the behavior
https://code.tritum.de/TYPO3.CMS/ext_form_example1480338786

This example provide a predefined form definition called "conditional elements example".
Install this Extension, include the statics, create a new "Form" Contentelement and select this form.
If you check the checkbox "Subscribe to newsletter" on the first page and continue to the next page,
then a new formelement "Name" will be shown on the second page. Additionaly a NotEmpty validator will be added to the "Email" formelement.

Without this patch, the formelement "Name" will not be created.


Related issues 1 (0 open1 closed)

Blocked by TYPO3 Core - Bug #79315: EXT:form - reset templatePathAndFilename if neededClosedRalf Zimmermann2017-01-13

Actions
Actions

Also available in: Atom PDF