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
There are cases when I want to edit an existing form entry. But looks like FormForForm(form, instance = entry) isn't able to populate the form entry with its field entry values. When I use FormForForm, it's always like a new entry.
I think the problem is in its init function, it always set the initial to be a field's default value. I think init function should be smarter. It should fetch every field entry of the form entry and populate the FormForForm's initial field if instance parameter is set.
The text was updated successfully, but these errors were encountered:
There are cases when I want to edit an existing form entry. But looks like FormForForm(form, instance = entry) isn't able to populate the form entry with its field entry values. When I use FormForForm, it's always like a new entry.
I think the problem is in its init function, it always set the initial to be a field's default value. I think init function should be smarter. It should fetch every field entry of the form entry and populate the FormForForm's initial field if instance parameter is set.
The text was updated successfully, but these errors were encountered: