We can generate a URL string in a Text Control using the following Calculated Value option:
concat('https://www.google.com/maps/search/?api=1&query=', $Latitude, '%2C', $Longitude)
And this will return something like: https://www.google.com/maps/search/?api=1&query=51.5067%2C-0.07357
But how do we convert this into a hyperlink that the user can click on?
Many thanks in advance.
PeteA
Use a Calculated Value control to generate the HTML link. So your expression will look something like:
concat(
'<a href="https://www.google.com/maps/search/?api=1&query=',
$Latitude, '%2C', $Longitude,
'">Link to map</a>'
)
Edit the source of the form (Advanced, Edit Source), and add the attribute mediatype="text/html"
<xf:output>
that corresponds to your control.