I'm making an address registration field on my website. I have a database with some address information that is linked to the CPF (first image). I want that when the person types the CPF in the input (if it is a CPF registered in the Database) the other input fields are automatically filled in with the address information related to that CPF.
Hello,
On the Onchange of CPF input you have to check if it is a CPF registered in the Database or not.
If yes, then there only you have to assign values to the other input variables.
Do share your oml if you find any difficulty.
Thanks
Anees
Hello. it worked, thank you very much.
just one more question, some people have more than 1 address registered in the same CPF, how do I go down a list below my input so that I can select which of the addresses of that person I want?
You can use dropdown for list of addresses associated with that CPF and make it selectable.