I tried:
form = JournalForm(initial={'tank': 123})
but as the documentation says, it does not work for bound forms. What can I do to populate the input fields with default values in bound forms ? The values are supposed to be variable as well.
I my case I want to create a form that allows users to change their email address. The current email address is supposed to be in the input field.
I’m not entirely sure what the problem is. The purpose of
initialis to set the initial data for the form. Do you have somethng similar to this? Note that you do not need to specify the initial data if the form was posted, because the values are in the POST data already: