Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Form] form add extra data #20853

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 12 commits into
base: 6.4
Choose a base branch
Loading
from
Open
Prev Previous commit
Next Next commit
Remove trailing whitespace
  • Loading branch information
Arkalo2 committed Apr 8, 2025
commit 391f99bcdd201ac6078e19feeb83e0f0d382f4d8
4 changes: 2 additions & 2 deletions 4 forms.rst
Original file line number Diff line number Diff line change
Expand Up @@ -996,8 +996,8 @@ The extra fields can be injected like this:

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

The field name is composed of form ``user_create`` and the field name ``referralCode``.
It's automatically generated from the form class name. You can :ref:`override it <changing-the-form-name>`
The field name is composed of form ``user_create`` and the field name ``referralCode``.
It's automatically generated from the form class name. You can :ref:`override it <changing-the-form-name>`

You can get the referral code via ``getExtraData``::

Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.