I am trying to set the field to a certain value after the form is initialized.
For example, I have the following class.
class CustomForm(forms.Form)
Something like Nigel Cohen's would work if you were adding data to a copy of the collected set of form data:
form = FormType(request.POST) if request.method == "POST": formcopy = form(request.POST.copy()) formcopy.data['Email'] = GetEmailString()