evrylsem / UniqHire-Capstone

1 stars 0 forks source link

User text inputs prone to error #8

Open Lance-Abella opened 1 month ago

Lance-Abella commented 1 month ago

image

  1. Change the text input fields to select input fields. From City and State label, change it to Province and City. You can refer to this link for provinces: https://www.philatlas.com/provinces.html. Then, the city input field is dependent to province select input field. For example, If I select Cebu as province, then the options for city field must be within Cebu only. I am not really sure if there is an API for this, but we already did this kind of logic in school using JavaScript.
pearkie commented 1 month ago

issue image image

Hello Good Midnight,

Update: I’ve updated the registration form fields from 'City' and 'State' to 'Province' and 'City'. The 'City' field is now dependent on the selected 'Province' field. Instead of creating a new database table from scratch, I found an API that simplifies the process.

Please note that I’ve updated the names in the migrations to reflect these changes. If you encounter issues with registration, you may need to drop the existing database and run a new migration to apply these updates.

Adelante!

Edit: I've found out that some provinces don't have cities, they only have municipalities. 😮