This is quick and dirty but does the trick after you input your realm name, dbid and apptoken if required.
const track = (() => {
let realm = ""; //insert your realm here;
let dbid = ""; //insert dbid of your table here;
let applicationToken = ""; //insert your apptoken here if required for your app;
$.ajax({
url: `https://${realm}.quickbase.com/db/${dbid}?a=API_AddRecord&apptoken=${applicationToken}`,
method: 'GET',
success: (result) => {
console.log(result)
},
error: (err) => {
console.log("Your record did not save", err)
}
})
})()
Just make sure that you have jQuery installed in your <head> - you should have something like this:
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
------------------------------
Chayce Duncan
------------------------------