1

Is there any way to render help text as placeholder in Django Widget Tweaks. New to django widget tweaks.

Russell
  • 1,624
  • 5
  • 23
  • 43

1 Answers1

0

This is that you need, to set the placeholder attribute when creating the form. Refer to this: https://stackoverflow.com/a/44133785/4986502

In other cases when using django-widget-tweaks, template variables can be used as attribute values:

{% render_field form.text placeholder=form.text.label %}

Skope martin
  • 75
  • 1
  • 8