I have a Django form with a RegexField, which is very similar to a normal text input field.
RegexField
In my view, under certain conditions I want to hide it from
If you have a custom template and view you may exclude the field and use {{ modelform.instance.field }} to get the value.
{{ modelform.instance.field }}
also you may prefer to use in the view:
form.fields['field_name'].widget = forms.HiddenInput()
but I'm not sure it will protect save method on post.
Hope it helps.