How to redirect a url button to go back to whatever report the button is used in after save or cancel?

  • 0
  • 1
  • Question
  • Updated 3 years ago
  • Answered

I have a Field Rep Schedule Info url button that takes them to a particular form in a table. However, if they update the record or cancel out of it, it returns to that record. Field Reps want it to return to the report that they have been working in, no matter what report they are working in. Is that possible or do I need to direct it to a particular report?

Here's what I have so far: 

URLRoot() & "db/" & Dbid() & "?a=er&key="&[Record ID#] &"&dfid=24"

Photo of Dawn

Dawn

  • 40 Points

Posted 3 years ago

  • 0
  • 1
Photo of QuickBaseCoach App Dev./Training

QuickBaseCoach App Dev./Training, Champion

  • 65,280 Points 50k badge 2x thumb
If you suffix your URL with

& "&z=" & Rurl()

Then it should return to the report.
Photo of Dawn

Dawn

  • 40 Points
Yes, I tried that. Actually, when they save it, it works with the suffix. However, f they cancel it, it goes back to the main company form. Guess I'll just have to do some training. :)
Photo of QuickBaseCoach App Dev./Training

QuickBaseCoach App Dev./Training, Champion

  • 65,280 Points 50k badge 2x thumb
Right, sorry, I don't know how to control the behaviour of the Cancel button in native QuickBase.