Skip to content

Commit 9fb25a4

Browse files
committed
Add user_create form name explanation
1 parent ddfdc72 commit 9fb25a4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: forms.rst

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

997997
Here, the referral code is an extra field injected at view level.
998998

999+
The field name is composed of form ``user_create`` and the field name ``referralCode``.
1000+
It's automatically generated from the form class name. You can :ref:`override it <changing-the-form-name>`
1001+
9991002
You can get the referral code via ``getExtraData``::
10001003

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

0 commit comments

Comments
 (0)