Python Forum
Generating dynamic dropdown list - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html)
+--- Thread: Generating dynamic dropdown list (/thread-37918.html)



Generating dynamic dropdown list - test - Aug-09-2022

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!


RE: Generating dynamic dropdown list - blessinguvula - Aug-30-2023

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.