I’m trying to create a Wikipedia-like site and am trying to add a feature that allows users to create their own wiki page. I manage to render the form, but the labels are annoying me and I wish I could get rid of them or, better yet, make them appear inside the fields, such like the “placeholder” in HTML but couldn’t figure out how to
I read this (https://docs.djangoproject.com/en/3.1/ref/forms/api/#ref-forms-api-configuring-label) and tried to use the auto_id=False when I’m using the form constructor:
render(request, “encyclopedia/create.html”, {“form”:PageCreationForm(auto_id=False)})
But it does nothing. There isn’t a error message either. The looks just the same and I don’t know why. What did I get wrong?