Opened 9 years ago

Closed 9 years ago

#6067 closed (worksforme)

Small addition to newForms documentation regarding required fields in templates

Reported by: stp2007 <stp2007@…> Owned by: nobody
Component: Forms Version: master
Severity: Keywords: documentation
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


In the documentation:

It might be useful to give an example of how to check if a field is required when accessing a form field directly. This would be in addition to the existing example which is demonstrating use when iterating over a form.

I'd suggest an example such as {% if form.fieldName.field.required %}*{% endif %}


Change History (1)

comment:1 Changed 9 years ago by Thomas Güttler

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Resolution: worksforme
Status: newclosed

The documentation: already contains
an example, that you can use {{ form.fieldname }}.

Nevertheless thank you for trying to improve the documentation.

Note: See TracTickets for help on using tickets.
Back to Top