@Adam Keever I know we're also discussing the Slack channel, but I didn't want to leave this post hanging.
ā
I would suggest passing your desired redirect as part of the URL and using it in place of the referrer... which should help with the loop. (I'm using chrome, and have not experienced a looping issue with the code)
Also, this is only intended to use with a previously saved record as it needs the Record ID to function.
Something along the lines of this:
FORMULA - URL:URLRoot() & "db/" & AppID() & "?a=dbpage&pageid=17
" & // code page"&url=" & URLEncode(URLRoot() & "db/" & Dbid() & "?a=printr&dfid=10&rid=" & [Record ID#]) & //passed to code page for print window
"&rdrurl=" &
URLEncode(URLRoot() & "db/" & Dbid() & "?a=dr&rid=" & [Record ID#])//passed for final redirectCODE PAGE:<!DOCTYPE html><html><head><script>var urlParams = new URLSearchParams(window.location.search);var url = urlParams.get('url');var rdrurl = urlParams.get('rdrurl');window.open(url,'Print','width=800,height=700');window.location.href = rdrurl;</script></head></html>------------------------------
Sharon Faust (QuickBaseJunkie.com)
Founder, Quick Base Junkie
https://quickbasejunkie.com------------------------------