Skip to content

[Forms] setDefault() method not reflected in HTML value attribute #16757

Closed Answered by raicabogdan
s-ohnishi asked this question in Q&A
Discussion options

You must be logged in to vote

Your issue is that you are passing an entity and that overrides the default form values. You see, if you do not pass any data to the form, it should render the setDefault() value.

Try to set your id in your entity and that should work.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@s-ohnishi
Comment options

@raicabogdan
Comment options

@s-ohnishi
Comment options

Answer selected by s-ohnishi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants