logo

NJP

Service Portal Address Lookup

Import · May 19, 2016 · article

Here's how it should have looked on stage today

As the user types in the post / zip code area, parts of the address are filled in on the form

The angular client code below 'watches' the input and then calls the server to do the geo lookup

image

The server calls out to a public google API to get the information which is ".then" returned to the client in the function above

image

All of this is made easy using JSON, and XHR

View original source

https://www.servicenow.com/community/developer-articles/service-portal-address-lookup/ta-p/2323255