Skip to main content
Question

Custom Save and Redirect

  • March 2, 2020
  • 0 replies
  • 36 views

I've yet to find the solution I'm looking for.

Goal: Save the current record and redirect to a native QuickBase user homepage based on their role.

URLRoot() & "db/" & [_DBID_TASKS]
& "?a=API_EditRecord&apptoken=*******&rid=" & URLEncode([TASK - Record ID#])
& "&_fid_16=" & URLEncode([staff_member])
& "&_fid_15=" & URLEncode([department])
& "&rdr=" & URLEncode(URLRoot() & "db/" & [_DBID_TASKS] & "?a=dr&rid=" & [TASK - Record ID#])

Currently we're redirecting to the previous task record where the user came from. Ideally we'd like the user to be redirect to their QuickBase homepage based on their role, i.e. user in the role of Operator A goes to the Operations Home Page and user in the role of Operator B goes to the Production Home Page. 

Any suggestions? 
Thank you

------------------------------
T$
------------------------------
This topic has been closed for replies.

MarkShnierYou
Forum|alt.badge.img+22
  • Quickbase Alumni
  • March 2, 2020
There is more than 1 solution, but the easiest is to redirect the user back o the Home Page of the app and set the Role so that the Role's Home Page is correct for the Role.

Then the redirect would be to 
URLRoot() & "db/" & AppID()

------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
mark.shnier@gmail.com
------------------------------