Hello everyone, I would like to create a form using AEM Forms that when the user enters their zip code automatically fills in the address fields.
Is there any way to do this natively or via API?
Solved! Go to Solution.
Views
Replies
Total Likes
Suppose the list of address fields against zip codes is limited. In that case, you can write a servlet to list the addresses against codes as elaborated here[0] (a similar use case) and then make an AJAX call from the form to the servlet
OR,
if the data might change frequently, you can use FDM[1][2] to prefill data based on an input field.
Also, this can be done using an external API anyways.
Suppose the list of address fields against zip codes is limited. In that case, you can write a servlet to list the addresses against codes as elaborated here[0] (a similar use case) and then make an AJAX call from the form to the servlet
OR,
if the data might change frequently, you can use FDM[1][2] to prefill data based on an input field.
Also, this can be done using an external API anyways.
@luanh2511 It's a standard use case, if you have used FDM you can call FDM to pull data on zip and show it in the respective field.
Views
Likes
Replies