Forum Discussion
GeoffreyHarmuth
6 years agoQrew Captain
So im stuck on this, is there anyone that can assist here? this code of Dans is not working.
Any help is appreciated.
Any help is appreciated.
GeoffreyHarmuth
6 years agoQrew Captain
Hi Austin. Thanks, my post was just to check if someone is able to assist on this since Dan is MIA.
So the first line of code (Jquery) doesn't seem to work, i'm not sure if there is a syntax error. I tested in the console first.
Secondly, i'm not sure how to combine the 2 pieces of code (below) To pull the information and add into the quickbase native address type field.:
First one to fetch the info:
And second to populate the field forms:
I am thinking I should run the code in a formula url button, and making the script as follows:
But im messing the code up somewhere (not a developer here). I would like for the script to run automatically using iol, but im not entirely sure how the script page would need to look
So the first line of code (Jquery) doesn't seem to work, i'm not sure if there is a syntax error. I tested in the console first.
Secondly, i'm not sure how to combine the 2 pieces of code (below) To pull the information and add into the quickbase native address type field.:
First one to fetch the info:
var apikey = "YOUR API KEY";
var addr = "puns.chew.snow";
var url = 'https://api.what3words.com/v2/forward?addr=${addr}&display=full&format=json&key=${apikey...;
$.get(url)
.then(function(json) {
console.log(json.geometry.lat);
console.log(json.geometry.lng);
console.log(json.map);
console.log(JSON.stringify(json, null, " ")); });
And second to populate the field forms:
_fid_7.value = json.geometry.lat;
_fid_8.value = json.geometry.lng; _fid_9.value = json.map;
I am thinking I should run the code in a formula url button, and making the script as follows:
var apikey = "YOUR API KEY";
var addr = [what3words address field];
var url = 'https://api.what3words.com/v2/forward?addr=${addr}&display=full&format=json&key=${apikey...;
$.get(url)
.then(function(json) {
_fid_7.value = json.geometry.lat; _fid_8.value = json.geometry.lng; _fid_9.value = json.map; console.log(JSON.stringify(json, null, " ")); });
But im messing the code up somewhere (not a developer here). I would like for the script to run automatically using iol, but im not entirely sure how the script page would need to look