luxjuice
4 days agoQrew Member
Redirect after API_EditRecord
Greetings, everyone!
I'm at my wits end trying to get a redirect to properly fire in a Formula URL button. I'm using the URL as a "Submit" button that changes the phase of the record, then I want the app to redirect to a report. All I can get is a redirect to the app homepage which is not intuitive and undersirable.
Here is the URL Formula:
var text submitURL = URLRoot() & "db/" & Dbid() & "?a=API_EditRecord&rid=" & [Record ID#] & "&_fid_34=Items&apptoken=<token hidden>";
var text redirectURL = URLRoot() & "db/" & Dbid() & "/a=q&qid=7";
$submitURL & "&rdr=" & URLEncode($redirectURL)
Can someone help me figure out what's wrong with this implentation?
Thank you!
RESOLVED!
Had to link to /tablereport?a=q&qid=7 instead of ?a=q&qid=7. Go figure...?