Format the postcode for the URL

 

In this example, we have to alter the way the postcode is formatted to work for a google maps link. 


Helper - replace

This formats the text to be suitable for your requirements. 

 

Parameter

The character spaces. 

 

Field - postCode

A post code for a a property - usually formatted as AA00 AAA. 


Example String 

{{replace tenant.address.postCode " " ""}}




Embed postcode into URL


https://www.google.co.uk/maps/place/{{replace tenant.address.postCode " " ""}}/


This string on merge, will create a link like this: https://www.google.co.uk/maps/place/CF244TW/