You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: form/bootstrap4.rst
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -92,6 +92,14 @@ Checkboxes and Radios
92
92
For a checkbox/radio field, calling ``form_label()`` doesn't render anything.
93
93
Due to Bootstrap internals, the label is already rendered by ``form_widget()``.
94
94
95
+
File inputs
96
+
-----------
97
+
98
+
Files input are rendered using the Bootstrap "custom-file" class.
99
+
100
+
Due to Bootstrap internals, the rendered field does not display the selected filename.
101
+
To fix that missing display, you can use the "`bs-custom-file-input`_" plugin (vanilla javascript), as recommended by `Bootstrap Forms documentation`_.
102
+
95
103
Accessibility
96
104
-------------
97
105
@@ -116,4 +124,6 @@ and ``checkbox-custom`` respectively.
0 commit comments