-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[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
base: 6.4
Are you sure you want to change the base?
[Form] form add extra data #20853
Conversation
The |
You can use 6.4 as it's the oldest maintained branch. |
{{ form_row(form.email) }} | ||
|
||
{# Hidden field to send additional referral code #} | ||
<input type="hidden" name="user_create[referralCode]" value="{{ referralCode }}"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isnt it usefull to also add a note on from where this "user_create
" value comes from?
as it is a "niche feature" I would assume one knows but just in case ^^
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A note to explain user_create
is the name of the form?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes because it will only works of this handwritten name is correct according to symfony way of doing right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added description, what do you thinks ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like it, much more precise imho
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or you can use {{ form.vars.full_name ~ '[referralCode]' }}
to render the form name dynamically
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or you can use
{{ form.vars.full_name ~ '[referralCode]' }}
to render the form name dynamically
Ok I added it
8803a0a
to
3a9cef5
Compare
3a9cef5
to
9fb25a4
Compare
9fb25a4
to
522e74c
Compare
No description provided.