[Answer]-Django: How to get Form field descriptions to show inside the text/entry box and not outside of it? (pic inside)

1👍

@artm is right, placeholder is an attribute within input tag, Django allows you to add placeholder attribute using widget, for example:

from django import forms

class ExampleForm(forms.Form):
  name = forms.CharField(label='name', widget=forms.TextInput(attrs={'placeholder': 'Please enter your name'}))

That will insert placeholder attribute that will give you exactly what you described.

Leave a comment