Forum Discussion
_anomDiebolt_
7 years agoQrew Elite
Within the code page use this script
var urlParams = new URLSearchParams(window.location.search);You used to have to use a library to parse the query string but now we have URLSearchParams native in JavaScript.
urlParams.get("a"); // "dbpage"
urlParams.get("pagename"); // "InvoicePDF.html"
urlParams.get("rid"); // value of [Record ID#]
- _anomDiebolt_7 years agoQrew EliteBTW, you have a typo in your URL formula - should be:
"https://user.quickbase.com/db/DBID?a=dbpage&pagename=InvoicePDF.html&rid="; & [Record ID#]
VERY STRANGE - The Forum is messing up my correction by adding a semicolon. You have a question mark instead of an ampersand in your original formula before "rid=