You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When defined like this, I can set default values, render the form manually with {input players-$playerId-rank} however, it won't load submitted values into players upon submit because $this->getComponents() in NFormContainer/getValues() loop returns nothing. So when I call $form->values in my processing method I get an empty iterator/array for players.
If however, I place the hidden item before the dynamic one, everything works fine:
Please let me know if you're able to replicate the issue. If not, I would send a full test app (probably next month though, I'm short of time right now).
Nette Framework 2.0.8 (revision b7f6732 released on 2013-01-01)
The text was updated successfully, but these errors were encountered:
Hi Filip,
here's a pseudo code that demonstrates the issue:
When defined like this, I can set default values, render the form manually with {input players-$playerId-rank} however, it won't load submitted values into players upon submit because $this->getComponents() in NFormContainer/getValues() loop returns nothing. So when I call $form->values in my processing method I get an empty iterator/array for players.
If however, I place the hidden item before the dynamic one, everything works fine:
Please let me know if you're able to replicate the issue. If not, I would send a full test app (probably next month though, I'm short of time right now).
Nette Framework 2.0.8 (revision b7f6732 released on 2013-01-01)
The text was updated successfully, but these errors were encountered: