From d40285bc4259459bbb0cdb9a0a3e24ba08ce782d Mon Sep 17 00:00:00 2001 From: Julien Falque Date: Tue, 13 Feb 2018 14:46:11 +0100 Subject: [PATCH] Event form modifications improvements --- form/dynamic_form_modification.rst | 5 +++++ form/events.rst | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/form/dynamic_form_modification.rst b/form/dynamic_form_modification.rst index 2375a34fea8..f2cf659a018 100644 --- a/form/dynamic_form_modification.rst +++ b/form/dynamic_form_modification.rst @@ -591,6 +591,11 @@ callbacks only because in two different scenarios, the data that you can use is available in different events. Other than that, the listeners always perform exactly the same things on a given form. +.. tip:: + + The ``FormEvents::POST_SUBMIT`` event does not allow to modify the form + the listener is bound to, but it allows to modify its parent. + One piece that is still missing is the client-side updating of your form after the sport is selected. This should be handled by making an AJAX call back to your application. Assume that you have a sport meetup creation controller:: diff --git a/form/events.rst b/form/events.rst index 42e8e93fe61..064fd51b660 100644 --- a/form/events.rst +++ b/form/events.rst @@ -219,7 +219,8 @@ View data Normalized data transformed using a view transformer .. caution:: - At this point, you cannot add or remove fields to the form. + At this point, you cannot add or remove fields to the current form and its + children. .. sidebar:: ``FormEvents::POST_SUBMIT`` in the Form component pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy