Is there a way to use input text placeholder when using {{ form.as_p }}
13 views
Skip to first unread message
Alexander Joseph
unread,
Jul 26, 2017, 4:31:58 PM7/26/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
I'm using {{ form.as_p }} in my template and would like to be able to use placeholders in the individual input fields. Is there a way to do this? Thanks
Lee Hinde
unread,
Jul 26, 2017, 4:41:52 PM7/26/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django...@googlegroups.com
in the init method of your form do something like this: