# Print specific error message from form

**URL:** <https://forum.djangoproject.com/t/print-specific-error-message-from-form/2956>\
**Category:** Using Django\
**Created:** [June 13, 2020, 7:24pm UTC](https://forum.djangoproject.com/t/print-specific-error-message-from-form/2956 "2020-06-13T19:24:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![openedsky](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/openedsky/32/1184_2.png) [@openedsky](https://forum.djangoproject.com/u/openedsky)\
**Post date:** [June 13, 2020, 7:24pm UTC](https://forum.djangoproject.com/t/print-specific-error-message-from-form/2956/1 "2020-06-13T19:24:03Z")

</div>

How can I print error message for specific field in my template. And how can I retain bad values after field submitting even if form is not valid. I use modelform.

---

<div class="post-metadata">

**Author:** ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)\
**Post date:** [June 13, 2020, 10:17pm UTC](https://forum.djangoproject.com/t/print-specific-error-message-from-form/2956/2 "2020-06-13T22:17:30Z")

</div>

Reviewing the relevant documentation in the [Working with forms](https://docs.djangoproject.com/en/3.0/topics/forms/#working-with-forms) page on [Rendering form error messages](https://docs.djangoproject.com/en/3.0/topics/forms/#rendering-form-error-messages) along with the [How errors are displayed](https://docs.djangoproject.com/en/3.0/ref/forms/api/#how-errors-are-displayed) section of the [Forms API page](https://docs.djangoproject.com/en/3.0/ref/forms/api/#module-django.forms) will give you the information you need to get started.

Ken
