How to make a form field where a user can select several values ​​and / or enter his own? Those. should get something like this.

<html> <head> <meta charset="UTF-8"> <title>Множественный выбор</title> </head> <body> <label> <input type="checkbox">Яблоки </label> <label> <input type="checkbox">Груши </label> <label> <input type="checkbox">Бананы </label> <input type="text" placeholder="Другое"> </body> </html> 

  • In html there are no inputs able to provide this. It is necessary with the help of css and js to turn a pair from select and input of type text into one widget. - Sergey Gornostaev
  • And then html? The question is how to draw a Django. - havon
  • Django generates the user html, and therefore can not go beyond its capabilities. - Sergey Gornostaev
  • Of course. But in html it is possible, and I even wrote what code to generate. I do not know how to make such a field, which widget to use. - havon
  • Then absolutely do not understand your problem. You do not know how to declare two fields in the form? You do not know how to do form validation in two fields? Or do you want to make a non-standard djang-form field that is displayed in two fields of the html-form, but do not know how? - Sergey Gornostaev

0