Python Forum

Full Version: Generating dynamic dropdown list
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi!
I am new to Flask and am trying to make a webpage with a multiselect dropdown menu which has an option to add more items by the user if it does not already exist in the dropdown.

Making a multiselect dropdown is straight forward, but I've been stumped in trying to make it accept user input as well. Please guide me to a solution.

Thanks!
I'm now doing this based on a suggestion from another thread in this group, but I'm stumped by the grammar of that final line. It objected to the use of "row" alone in the annex. The result of the fetchall is a tuple.