[Answer]-How to make form field blank after submitting

1👍

You can update the form’s data with an empty string. The only issue that the QueryDict is immutable so you have to copy request.POST before passing it to the form:

form = MyForm(request.POST.copy())
if form.is_valid():
    ...
    return redirect(...)
form.data['reason_for_change'] = ''

Leave a comment