15
Views
3
Comments
Solved
Automatically fill in all fields (inputs) based on CPF
Question
Service Studio Version
11.54.24 (Build 62760)

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. 



AutoPreencher.1.png
AutoPreencher.2.png
Solution

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.

Thanks

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.