I have an API that requires two values be entered into it in order for it to show information. I have the values captured in Toolset. Can i transpose those values into the API.
Do you mean that you have the values stored in a custom field on the backend and want to retrieve it from there ? Or is it that you want to retrieve the value while the user is entering it using the Toolset forms plugin.
this is the javascript for the api
see the line where is says latlng those two values are stored in toolset .... I need to pull them into the API
// The Google Map Engine options
var gibilterra = new google.maps.LatLng(36.140751,-5.353585);
var gMapNauticalOptions = {
zoom: 14,
center: gibilterra,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var gMapNautical2 = new google.maps.Map(document.getElementById("sonar-map-container"), gMapNauticalOptions);
//Navionics SonarChart
var navionics_sonarchart_layer = new JNC.Google.NavionicsOverlay({
navKey: "****",
chartType: JNC.Google.NavionicsOverlay.CHARTS.SONAR
});
gMapNautical2.overlayMapTypes.insertAt(0, navionics_sonarchart_layer);
Thank you for sharing the code. In this case since its JS, what you're going to have to do is to use our types shortcode to print the values on the page.
Then get the stored values from the page to plug into your js code.