Skip to content

Commit 3a9cef5

Browse files
committed
Add user_create form name explanation
1 parent 62ce5b8 commit 3a9cef5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

forms.rst

+3
Original file line numberDiff line numberDiff line change
@@ -989,6 +989,9 @@ The extra fields can be injected like this:
989989

990990
Here, the referral code is an extra field injected at view level.
991991

992+
The field name is composed of form ``user_create`` and the field name ``referralCode``.
993+
It's automatically generated from the form class name. You can :ref:`override it <changing-the-form-name>`
994+
992995
You can get the referral code via ``getExtraData``::
993996

994997
$extraData = $form->getExtraData();

0 commit comments

Comments
 (0)