Forum Discussion

JohnJordan's avatar
JohnJordan
Qrew Member
8 months ago

Redirect after record deleted

Does anyone know how to redirect to a specific location after a record is deleted using the "delete" option ("Delete this Record" or trash can) from the standard action bar on forms?

I want to allow my users to delete records when viewing (typically opens in a new browser tab) and I don't want them redirected to the app home page or the table page after deleting.



------------------------------
John Jordan
------------------------------

3 Replies

  • I'm 99% sure you could make a formula URL button that the user could press. Where is it you want to direct them to after the delete. Do you just want to refresh the page that they are on?  



    ------------------------------
    Mark Shnier (Your Quickbase Coach)
    mark.shnier@gmail.com
    ------------------------------
    • MarkShnier__You's avatar
      MarkShnier__You
      Qrew Champion

      var text Delete = URLRoot() & "db/" & Dbid() & "?act=API_DeleteRecord&rid=" & [Record ID#];

      var text RefreshPage =  URLRoot() & "db/" & Dbid() & "?a=doredirect&z=" & Rurl();

       
      $Delete
      & "&rdr=" & URLEncode($RefreshPage)



      ------------------------------
      Mark Shnier (Your Quickbase Coach)
      mark.shnier@gmail.com
      ------------------------------
      • JohnJordan's avatar
        JohnJordan
        Qrew Member

        Thank you. I have thought of using custom buttons. 

        It would be nice if there was a consistent "return" location for any action. Sometimes, I get the report home page, sometimes I get the app home page.



        ------------------------------
        John Jordan
        ------------------------------