I have a database called “Postleitzahl” (Postal Code). It contains various countries with their postal codes, the number of days for delivery, and information about express and premium shipping.
Additionally, I have another database that contains country codes.
My goal is to query the data in my “Postleitzahl” database using a dropdown menu (which gets the country codes from the second database) and an input field for the postal code.
Here’s the process:
- Dropdown Menu: The user selects a country from the list.
- Input Field: The user enters a postal code.
Then, the following should happen:
- The database is checked in the column of the selected country.
- It is verified whether the entered postal code exists in that column.
- If the postal code exists, the ID of the postal code in the database is determined.
- This ID is then used to filter the delivery duration (number of days) in the next step.
- The desired data is then output in an input field. For example, entering IT - 1050 would show the shipping duration in days in the input field.
How can I implement this using Drapcode?