Re: Select Boxes and Database

2023-12-07 Thread Swarup Selvaraj
Hi David, The functionality you are interested in is called as *Cascading Dropdown*. Below are few examples recommended by Bing Chat powered by GPT-4: - django-cascading-dropdown-widget · PyPI : This is a package that

Re: Select Boxes and Database

2023-12-02 Thread Vishesh Mangla
Hi Mike , You can do the following using query parameters. Create a separate endpoint /getcities?city=... . You send the state and get array of cities. This endpoint would give you a json array of cities. On selection of state on the frontend, your event listener would make api call to above

Re: Select Boxes and Database

2023-12-02 Thread Mike Dewhirst
On 3/12/2023 7:27 am, David Merrick wrote: Hi. I can put an item from the database into a select box ie Countries of the World. What I want to know is saying, having chosen New Zealand from the select box, how do I display all the cities of New Zealand in another select box. The database has

Select Boxes and Database

2023-12-02 Thread David Merrick
Hi. I can put an item from the database into a select box ie Countries of the World. What I want to know is saying, having chosen New Zealand from the select box, how do I display all the cities of New Zealand in another select box. The database has two tables. First one is Countries. The second