Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
Add a Custom HTML in a Form. Place the following code:-
Code Block |
---|
<button id="showMap">Show in Map</button> <div id="mapholder"></div> <script type="text/javascript"> $( function(){ $("button#showMap").click( function(event){ event.preventDefault(); showPosition($("#coordinate#marker").val()); }); }); function showPosition(position) { var latlon = position; var iframe_url = "https://www.google.com/maps/embed/v1/place?key=[YourGoogleAPIKeyHere]&q=" + latlon; document.getElementById("mapholder").innerHTML = "<iframe width='85%', height='500px' src='"+iframe_url+"'>"; } </script> |