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
[Form] SetData on form with default value #7141
Comments
The |
Great, now I know more. Thanks for explanation |
I'm stuck at the same thing. So the data option wins, but for un-mapped fields (or no entity at all) it's not very intuitive to setData() for nothing. @stof, can you please argument this decision implementation? Thank you. |
@dewos you should ask @bschussek for the argumentation as he is the one who wrote most of the Form component. |
Ok...... @bschussek? :) |
See this ticket and this SO answer for an explanation. This decision has actually been a mistake. It would be better to remove data locking and to replace it by an additional condition in the data mapper. I already suggested this in a ticket, but can't find it right now. |
@bschussek the link to |
Ok, but maybe you should throw an exception, then. Now setData fails silently. |
I have a form with one default value:
one of the requirements is form can be pre-populated by re-sellers by passing parameters in URL. It is also nice feature for potential customers to copy and paste link to email, communicators, etc.
I did it this way:
unfortunately field 'options' has always default value, instead value passed as a parameter.
I have tried to change line # look here into
but no result.
Is it a bug of feature?
The text was updated successfully, but these errors were encountered: