Relate dropdown information and redirect user to page referr

(Relate dropdown information and redirect user to page referring to seller)

(translated into google)

I need some urgent help, please!
I have no experience, but I’m trying.
Well the idea is this; I need the user to fill in the data: name, surname, company name, phone, email, state and city.
When choosing the state (Drop down state) you need to display in the (drop down city) the cities related to the state.
In the onclick event of the button I need to save the data and derive the user to the page referring to the seller of the city.

The basic thing is to send the data to the database quietly, but the problem for me is to link the state dropdowns with the cities and direct the user to the link referring to the seller.

thanks in advance

Hi,

In order to implement a state to city connection you will have to either copy and paste the entire list of cities and states or to get the data form a third party api.

To navigate the user to a specific page after saving you can use query parameters
See more here

thank you for answering
Okay, the list already has it. How do I make this code?
Could you help me or pass me some page that has examples of how to search and direct as the name chosen.

There are multiple methods of achieving this; for example you could connect the dropdown to another dataset and in its onChange event call dataset filter on the first dataset according to the user’s selection.
dataset.filter

then the idea is this:

have an example code to send me please