Task #78821
closedEpic #77909: Enhance EXT:form
Feature #77910: Introduce new form framework
Ext:form - Add onSubmit callback for pages
100%
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.
Updated by Ralf Zimmermann about 8 years ago
- Tracker changed from Feature to Task
- Target version deleted (
8.5) - TYPO3 Version set to 8
Updated by Gerrit Code Review about 8 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/50796
Updated by Ralf Zimmermann about 8 years ago
- Subject changed from Add onSubmit callback for pages to Ext:form - Add onSubmit callback for pages
Updated by Gerrit Code Review about 8 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50796
Updated by Ralf Zimmermann almost 8 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 8bdbf0c1d1c89dd3ee91405413d36ec2b9bbf6f2.