Forum Discussion

ThomasEasterli1's avatar
ThomasEasterli1
Qrew Trainee
5 years ago

Custom Save and Redirect

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$
------------------------------

2 Replies

  • 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
    ------------------------------
    • ThomasEasterli1's avatar
      ThomasEasterli1
      Qrew Trainee
      Thank you. Did the trick and is very simple which is even better.

      ------------------------------
      Thomas Easterling
      ------------------------------