Forum Discussion
DavidBrogdon
7 years agoQrew Assistant Captain
Just figured I would add code for how to pull values into the code page from a URL button within QB. Just replace "rid" with the name of your parameter name.
<script>
function getUrlParameters() {
var params = {};
var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) {
params[key] = value;
});
return params; }
function doCode(){
var recordID=getUrlParameters() ["rid"];
alert(recordID);
}
</script>