# Zip Code validation and Convertion

**URL:** <https://forum.adalo.com/t/zip-code-validation-and-convertion/28179>\
**Category:** Get Help\
**Created:** [June 11, 2022, 4:19pm UTC](https://forum.adalo.com/t/zip-code-validation-and-convertion/28179 "2022-06-11T16:19:44Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![rt\_neri](https://avatars.discourse-cdn.com/v4/letter/r/8dc957/32.png) [@rt\_neri](https://forum.adalo.com/u/rt_neri)\
**Post date:** [June 11, 2022, 4:19pm UTC](https://forum.adalo.com/t/zip-code-validation-and-convertion/28179/1 "2022-06-11T16:19:44Z")

</div>

Hi There. I have a requirement for my app to e able to validate a 5-digit zip code and then identify its city and state. Has anyone done this before that can give me pointers? I’m aware that this will likely require an external interface with perhaps the USPS APIs. Much appreciated.

---

<div class="post-metadata">

**Author:** ![rt\_neri](https://avatars.discourse-cdn.com/v4/letter/r/8dc957/32.png) [@rt\_neri](https://forum.adalo.com/u/rt_neri)\
**Post date:** [June 11, 2022, 8:23pm UTC](https://forum.adalo.com/t/zip-code-validation-and-convertion/28179/2 "2022-06-11T20:23:01Z")

</div>

So I tried to create a custom action and that was successful. Here is a screenshot of what I created. The test was successful. But what I do not know are:

1. where the results are located?
2. how to I get access to it?

Can someone help? Thanks.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/6/0/60bbf3ec603a79cbd91f4f8d701da64d2a6b2341.png)

---

<div class="post-metadata">

**Author:** ![JL\_LJ](https://avatars.discourse-cdn.com/v4/letter/j/f08c70/32.png) [@JL\_LJ](https://forum.adalo.com/u/JL_LJ)\
**Post date:** [June 11, 2022, 9:18pm UTC](https://forum.adalo.com/t/zip-code-validation-and-convertion/28179/3 "2022-06-11T21:18:24Z")

</div>

Hi @rt_neri ,  
I see you have “format=jason” instead of “format=json”. The rest from the documentation looks fine.

Just tested it and looks fine, you get all results.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/8/d/8d294a8890faf6f07f77dfdbbcb12935b85ea800.png)

Cheers.

---

<div class="post-metadata">

**Author:** ![rt\_neri](https://avatars.discourse-cdn.com/v4/letter/r/8dc957/32.png) [@rt\_neri](https://forum.adalo.com/u/rt_neri)\
**Post date:** [June 12, 2022, 2:37pm UTC](https://forum.adalo.com/t/zip-code-validation-and-convertion/28179/4 "2022-06-12T14:37:39Z")

</div>

Hi JL\_LJ, thanks for spotting the error. I’ve corrected that and now get the structure with test data. I also added an action to update the record (following the video tutorial) from which the zip code is coming from but for some reason, I do not get any results when I run the actions. Any thoughts on what I missed? Thanks.

 ![Untitled](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/c/0/c0975615b52c87d62b0a19287c30ac71e584fa93.png)

---

<div class="post-metadata">

**Author:** ![JL\_LJ](https://avatars.discourse-cdn.com/v4/letter/j/f08c70/32.png) [@JL\_LJ](https://forum.adalo.com/u/JL_LJ)\
**Post date:** [June 13, 2022, 5:45pm UTC](https://forum.adalo.com/t/zip-code-validation-and-convertion/28179/5 "2022-06-13T17:45:34Z")

</div>

Hi,  
Where are your inputs coming from? What triggers these custom actions?

Will this be running always from your own account? Or users would add their own key? If yours, then you don’t need to add the “Key” dynamically. Just add the key directly instead of the magic text.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/a/4/a42222ed56a77b77e6c84dd98225c384ccdc0dae.png)

Your magic text also seems weird, I get same as Adalo’s response with “results”:

![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/f/2/f27f1258c8a7d37d52d439474848f96151ea7afc.png)

You have “Zipcode \> zip.city”.

You can clone my app: [The One with The Zip Code](https://previewer.adalo.com/c498037e-91cb-4839-b989-c4539c5626a4)

---

<div class="post-metadata">

**Author:** ![rt\_neri](https://avatars.discourse-cdn.com/v4/letter/r/8dc957/32.png) [@rt\_neri](https://forum.adalo.com/u/rt_neri)\
**Post date:** [June 13, 2022, 6:52pm UTC](https://forum.adalo.com/t/zip-code-validation-and-convertion/28179/6 "2022-06-13T18:52:51Z")

</div>

Hi JL\_LJ. I renamed the variable but maybe that is what caused. it. And yes, the account will be mine; the users do not have to input that; only input is the zip code. I will clone the app and study it.  
Thanks you again! Very much appreciated.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/system/32/40401_2.png) [@system](https://forum.adalo.com/u/system)\
**Post date:** [June 23, 2022, 6:53pm UTC](https://forum.adalo.com/t/zip-code-validation-and-convertion/28179/7 "2022-06-23T18:53:07Z")

</div>

Closed on June 23, 2022, 6:53pm UTC

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
