Not sure if this is even possible. But ideally, I'd like visitors to my site to be able to type a unique identification number in an input field, click submit, and have another script replace the Google sheet reference ("DATA1
") with their own ID number.
So, effectively change the queried url. Here's part the script/url users need to modify:
function loadChart() {
var query = new google
.visualization.Query('https://docs.google.com/spreadsheet/ccc?key=...&sheet=DATA1');
query.send(handleQueryResponse);
}
Would it be possible to use/modify something like the following code to do the trick
function myFunction() {
var str = document.getElementById("get").innerHTML;
var changeit = str.replace("DATA2", document.getElementById('textbox').value);
document.getElementById("get").innerHTML = changeit;
}
Thanks for any help or direction you can provide