# Error Rendering

**URL:** <https://www.five.org/t/error-rendering/504>\
**Category:** Support\
**Created:** [January 24, 2025, 1:17am UTC](https://www.five.org/t/error-rendering/504 "2025-01-24T01:17:55Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![chef](https://yyz2.discourse-cdn.com/flex030/user_avatar/www.five.org/chef/32/1010_2.png) [@chef](https://www.five.org/u/chef)\
**Post date:** [January 24, 2025, 1:17am UTC](https://www.five.org/t/error-rendering/504/1 "2025-01-24T01:17:56Z")

</div>

Hi,

I’m trying to test a form I just created, and I get an error with two fields.  
Error rendering field Do you approve AI to f… [truncated], see console for more verbose information

Error rendering field Address, see console for more verbose information

Where can I see the console to understand better the rendering issue?

Thanks

---

<div class="post-metadata">

**Author:** ![Vin-five.co](https://avatars.discourse-cdn.com/v4/letter/v/e480ec/32.png) [@Vin-five.co](https://www.five.org/u/Vin-five.co)\
**Post date:** [January 24, 2025, 2:05am UTC](https://www.five.org/t/error-rendering/504/2 "2025-01-24T02:05:41Z")

</div>

Hi chef,

To access the console, right-click anywhere on the page and select “Inspect”, then navigate to the “Console” tab in the developer tools panel.

You may also run the application by clicking “Run with Inspector” in Five.

---

<div class="post-metadata">

**Author:** ![chef](https://yyz2.discourse-cdn.com/flex030/user_avatar/www.five.org/chef/32/1010_2.png) [@chef](https://www.five.org/u/chef)\
**Post date:** [January 24, 2025, 5:30am UTC](https://www.five.org/t/error-rendering/504/3 "2025-01-24T05:30:19Z")

</div>

Thank you for the prompt response.

This is the error I’m getting:" Error rendering field **Address** , see console for more verbose information"

The type of this field is \_AddressLookup. I’d like to implement an auto-address completed, based on location (given user gives permission).

The only partly related error I see in the console is this:

main.js:205 Unknown field type : E  
main.js:205 ReferenceError: google is not defined  
at e (eval at (main.js:205:4738978), :46:10099)  
at eval (eval at (main.js:205:4738978), :46:10429)  
at Fc (main.js:205:3379686)  
at t.unstable\_runWithPriority (main.js:205:3397612)  
at Wo (main.js:205:3320321)  
at Rc (main.js:205:3379149)  
at gc (main.js:205:3370677)  
at main.js:205:3320544  
at t.unstable\_runWithPriority (main.js:205:3397612)  
at Wo (main.js:205:3320321)  
cs @ main.js:205Understand this errorAI  
main.js:205 ReferenceError: google is not defined  
at e (eval at (main.js:205:4738978), :46:10099)  
at eval (eval at (main.js:205:4738978), :46:10429)  
at Fc (main.js:205:3379686)  
at t.unstable\_runWithPriority (main.js:205:3397612)  
at Wo (main.js:205:3320321)  
at Rc (main.js:205:3379149)  
at gc (main.js:205:3370677)  
at main.js:205:3320544  
at t.unstable\_runWithPriority (main.js:205:3397612)  
at Wo (main.js:205:3320321)  
main.js:205 ObjectcomponentStack: “\n at t.default (eval at ([Five](https://control-default-easyapp-ezapp.5au.dev/main.js:205:4738978)), :1:190968)\n at div\n at S ([Five](https://control-default-easyapp-ezapp.5au.dev/main.js:205:3820471))\n at [Five](https://control-default-easyapp-ezapp.5au.dev/main.js:102:36572%5Cn) at DZCustomField ([Five](https://control-default-easyapp-ezapp.5au.dev/main.js:205:4737280))\n at m ([Five](https://control-default-easyapp-ezapp.5au.dev/main.js:205:3630143))\n at t ([Five](https://control-default-easyapp-ezapp.5au.dev/main.js:205:4721670))\n at div\n at t ([Five](https://control-default-easyapp-ezapp.5au.dev/main.js:205:3889859))\n at t ([Five](https://control-default-easyapp-ezapp.5au.dev/main.js:205:4776504))\n at m ([Five](https://control-default-easyapp-ezapp.5au.dev/main.js:205:3630143))\n at div\n at S ([Five](https://control-default-easyapp-ezapp.5au.dev/main.js:205:3820471))\n at [Five](https://control-default-easyapp-ezapp.5au.dev/main.js:102:51074%5Cn) at div\n at S ([Five](https://control-default-easyapp-ezapp.5au.dev/main.js:205:3820471))\n at [Five](https://control-default-easyapp-ezapp.5au.dev/main.js:102:51074%5Cn) at div\n at t.default ([Five](https://control-default-easyapp-ezapp.5au.dev/main.js:205:4752377))\n at t ([Five](https://control-default-easyapp-ezapp.5au.dev/main.js:205:4881157))\n at m ([Five](https://control-default-easyapp-ezapp.5au.dev/main.js:205:3630143))\n at div\n at t ([Five](https://control-default-easyapp-ezapp.5au.dev/main.js:205:4758898))\n at m ([Five](https://control-default-easyapp-ezapp.5au.dev/main.js:205:3630143))\n at div\n at div\n at div\n at S ([Five](https://control-default-easyapp-ezapp.5au.dev/main.js:205:3820471))\n at [Five](https://control-default-easyapp-ezapp.5au.dev/main.js:155:49647%5Cn) at z ([Five](https://control-default-easyapp-ezapp.5au.dev/main.js:205:4132754))\n at m ([Five](https://control-default-easyapp-ezapp.5au.dev/main.js:205:3630143))\n at t ([Five](https://control-default-easyapp-ezapp.5au.dev/main.js:205:4051695))\n at m ([Five](https://control-default-easyapp-ezapp.5au.dev/main.js:205:3630143))\n at div\n at S ([Five](https://control-default-easyapp-ezapp.5au.dev/main.js:205:3820471))\n at [Five](https://control-default-easyapp-ezapp.5au.dev/main.js:102:51074%5Cn) at div\n at S ([Five](https://control-default-easyapp-ezapp.5au.dev/main.js:205:3820471))\n at [Five](https://control-default-easyapp-ezapp.5au.dev/main.js:102:51074%5Cn) at main\n at div\n at div\n at t ([Five](https://control-default-easyapp-ezapp.5au.dev/main.js:205:4108575))\n at m ([Five](https://control-default-easyapp-ezapp.5au.dev/main.js:205:3630143))\n at div\n at S ([Five](https://control-default-easyapp-ezapp.5au.dev/main.js:205:3820471))\n at [Five](https://control-default-easyapp-ezapp.5au.dev/main.js:205:239039%5Cn) at t ([Five](https://control-default-easyapp-ezapp.5au.dev/main.js:205:3889859))\n at t ([Five](https://control-default-easyapp-ezapp.5au.dev/main.js:205:4007930))\n at m ([Five](https://control-default-easyapp-ezapp.5au.dev/main.js:205:3630143))\n at main\n at div\n at S ([Five](https://control-default-easyapp-ezapp.5au.dev/main.js:205:3820471))\n at [Five](https://control-default-easyapp-ezapp.5au.dev/main.js:205:239039%5Cn) at div\n at S ([Five](https://control-default-easyapp-ezapp.5au.dev/main.js:205:3820471))\n at [Five](https://control-default-easyapp-ezapp.5au.dev/main.js:205:239039%5Cn) at K ([Five](https://control-default-easyapp-ezapp.5au.dev/main.js:205:4024546))\n at Suspense\n at h ([Five](https://control-default-easyapp-ezapp.5au.dev/main.js:102:7181))\n at l ([Five](https://control-default-easyapp-ezapp.5au.dev/main.js:205:198119))\n at d ([Five](https://control-default-easyapp-ezapp.5au.dev/main.js:205:226289))\n at V ([Five](https://control-default-easyapp-ezapp.5au.dev/main.js:205:181614))\n at a ([Five](https://control-default-easyapp-ezapp.5au.dev/main.js:205:199115))\n at div\n at t ([Five](https://control-default-easyapp-ezapp.5au.dev/main.js:205:3827890))\n at m ([Five](https://control-default-easyapp-ezapp.5au.dev/main.js:205:3630143))\n at l ([Five](https://control-default-easyapp-ezapp.5au.dev/main.js:205:781686))\n at h ([Five](https://control-default-easyapp-ezapp.5au.dev/main.js:205:3628193))”[[Prototype]]: Object  
main.js:205 Unknown field type : E

Thanks again.

---

<div class="post-metadata">

**Author:** ![RileyAnderssen](https://avatars.discourse-cdn.com/v4/letter/r/5f8ce5/32.png) [@RileyAnderssen](https://www.five.org/u/RileyAnderssen)\
**Post date:** [January 24, 2025, 12:46pm UTC](https://www.five.org/t/error-rendering/504/4 "2025-01-24T12:46:59Z")

</div>

Hello,

Unfortunately you will not be able to necessarily do ‘Auto-Address’ completion within Five’s default fields, you can however, use an external API such as Google Maps Auto Complete API to achieve this.

Alternatively, you could also include multiple text fields which include of different address features (such as address line 1, state, city, etc) to increase user accuracy, however, this will not be ‘auto-complete’ as such.

Let me know if you would like some further links to the Google Maps API!

Thanks,  
Riley.

---

<div class="post-metadata">

**Author:** ![chef](https://yyz2.discourse-cdn.com/flex030/user_avatar/www.five.org/chef/32/1010_2.png) [@chef](https://www.five.org/u/chef)\
**Post date:** [January 24, 2025, 2:28pm UTC](https://www.five.org/t/error-rendering/504/5 "2025-01-24T14:28:36Z")

</div>

Thank you.

I do have several fields for the address, including city, state, zip code and country.

I would love a further explanation on how to connect to the Google Maps API to connect the auto-complete address in my form.

Thank you!

---

<div class="post-metadata">

**Author:** ![Vin-five.co](https://avatars.discourse-cdn.com/v4/letter/v/e480ec/32.png) [@Vin-five.co](https://www.five.org/u/Vin-five.co)\
**Post date:** [January 27, 2025, 2:04am UTC](https://www.five.org/t/error-rendering/504/6 "2025-01-27T02:04:23Z")

</div>

Hi @chef,

To link the Google Maps API with the \_AddressLookup field:

1. Set up the API key:
  - Navigate to Setup \> Instances and select the instance record.
  - Under the General tab, add an entry in the Options field.  
Key: GOOGLEMAPS\_API\_KEY  
Value: Paste the API key you obtained from your Google account.

2. Create a screen field (process, form, etc) and set its display type to \_AddressLookup.

The screen field will then do all the work automatically. If you need to get additional details from Google Maps, you can do so by accessing the metadata by attaching a function to the OnExit event. Below is an example of the OnExit function:

> function AddressOnExit(five, context, result) {
> 
> ```
> five.field.Suburb = five.getMetadata('Address', 'locality');
> five.field.Postcode = five.getMetadata('Address', 'postal_code');
> 
> return five.success(result);
> 
> ```
> 
> }

Thanks.

---

<div class="post-metadata">

**Author:** ![chef](https://yyz2.discourse-cdn.com/flex030/user_avatar/www.five.org/chef/32/1010_2.png) [@chef](https://www.five.org/u/chef)\
**Post date:** [January 27, 2025, 11:07pm UTC](https://www.five.org/t/error-rendering/504/7 "2025-01-27T23:07:43Z")

</div>

Thank you for the reply.

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/five/original/2X/8/829caaec6565bf8d7637e29080d15dae557e9a29.png)

For some reason, I am only getting Australia’s locations. I assume the API is taking the location from the server, which is located in Australia (your HQ I assume).

Also, in my previous setup through Wordpress, the website would ask the user to use his current location, and it would fill the address from the user’s locations. Can I implement that in my form?

Thank you.

---

<div class="post-metadata">

**Author:** ![RileyAnderssen](https://avatars.discourse-cdn.com/v4/letter/r/5f8ce5/32.png) [@RileyAnderssen](https://www.five.org/u/RileyAnderssen)\
**Post date:** [January 27, 2025, 11:35pm UTC](https://www.five.org/t/error-rendering/504/8 "2025-01-27T23:35:25Z")

</div>

Hello,

Within the same section that you added the option GOOGLEMAPS\_API\_KEY, you will also need to add GOOGLEMAPS\_TYPES and GOOGLEMAPS\_COUNTRY.

For GOOGLEMAPS\_TYPES, look at: [Place Types &nbsp;|&nbsp; Maps JavaScript API &nbsp;|&nbsp; Google for Developers](https://developers.google.com/maps/documentation/javascript/supported_types)

For GOOGLEMAPS\_COUNTRY, look at (note: you can parse an array of countries for the option):

> **[Places Autocomplete Service  |  Maps JavaScript API  | ...](https://developers.google.com/maps/documentation/javascript/reference/places-autocomplete-service#ComponentRestrictions)**

**EXAMPLE**  
GOOGLEMAPS\_API\_KEY: ‘your key’  
GOOGLEMAPS\_TYPES: electrician, bar, fire\_station  
GOOGLEMAPS\_COUNTRY: au

Regarding your second question (within your Wordpress application), we do not currently support this but I have passed it on to be discussed within our weekly product review meeting!

Hope this helps!

Thanks,  
Riley.
