Saturday, June 4, 2022

Re: ComboBox

The HTML element you probably want is a datalist[1]. There's no built-in Django support for datalist[2] so you'll probably need to create a custom widget.

[1] https://stackoverflow.com/a/14614750
[2] https://code.djangoproject.com/ticket/32125

On May 31, 2022 11:52:31 AM CDT, Phil Parkin <philparkin2611@gmail.com> wrote:
Hi all

I am converting a desktop application to Django web application. The desktop app uses comboboxes (editable dropdown/select). Is their any elegant way of applying the same functionality in Django? Stack Overflow etc. all seem to be about dropdown select lists only.

I can see ways of doing this with a Choicefield plus a separate Charfield, but is there a better way?

Thanks -Phil 

No comments:

Post a Comment