8000 [Form] form add extra data by Arkalo2 · Pull Request #20853 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

[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
from
Prev Previous commit
Next Next commit
Remove trailing whitespace
  • Loading branch information
Arkalo2 committed May 7, 2025
commit 82234e542a1f9385716f646a4ef9839e61f1d82f
2 changes: 1 addition & 1 deletion forms.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1002,7 +1002,7 @@ You can get the referral code via ``getExtraData``::
$extraData = $form->getExtraData();
$referralCode = $extraData['referralCode'] ?? null;

> Don't forget to set :ref:`allow_extra_fields <allow-extra-fields>` option to ``true`` on your form
> Don't forget to set :ref:`allow_extra_fields <allow-extra-fields>` option to ``true`` on your form

Learn more
----------
Expand Down
0