Hello everyone,
I need to auto-populate City and State/Region when a user enters a ZIP/postal code — for any country (international). I want the behaviour to be:
Enter postal code (and optionally country) → City and State fields auto-fill.
Should validate results and allow manual override if needed.
What’s the recommended approach in OutSystems (best practice)? Could you share an example implementation (REST setup, mapping, and client-side behaviour)? Any recommended APIs with good international coverage? Thanks
To auto-populate City and State/Region fields based on ZIP/postal code input for international addresses in OutSystems, you can make use of a third-party API that provides location details based on a ZIP/postal code. Here’s a high-level guide on how you can achieve this, including REST setup, mapping, and client-side behavior:
Choose an API: Use an API that supports international ZIP/postal codes. Examples include:
Set Up a REST Integration:
http://api.zippopotam.us/{country}/{postalcode}
Map API Response:
UI Interaction for Auto-Population:
Optional Client-Side Logic:
International Addresses:
Performance and User Experience:
While there isn’t a ready-made forge component for this exact requirement, you can combine APIs like Zippopotam and Postal Pincode API with OutSystems' capabilities to achieve the desired behavior. Let me know if you need more help with a specific part of this!