0

Suppose I have a following simple form:

class UserForm(Form):
    first_name = CharField(label='First Name')
    last_name = CharField(label='Last Name')

And there is some custom validation.

When a user submitted invalid data, Django renders the form with invalid values inside the fields.

Is it possible to render empty CharFields but with placeholders that show the entered data?

Paul R
  • 2,631
  • 3
  • 38
  • 72

0 Answers0