Forum Discussion

MichaelTamoush's avatar
MichaelTamoush
Qrew Captain
5 years ago

SImple Redirect Question

I am trying to make a formula URL button that redirects to a form (in the same table I start in) in edit mode. Once you edit and hit save, I want it to land in view mode back on the same form.

I tried the code below, but it immediately cycles through the edit variable, and just lands me on view mode on the form.

var text EditRecord =
URLRoot() & "db/bp8gm4p4f?a=er&dfid=24&rid=" & URLEncode ([Record ID#]); //"&z=" & Rurl()

var text ReDirect =
URLRoot() & "db/bp8gm4p4f?a=dr&dfid=24&rid=" & URLEncode ([Record ID#]);

$EditRecord
& "&rdr=" & URLEncode($ReDirect)

I tried a few other combos that take me to edit mode, but upon saving return me to the default form. What is my mistake?

------------------------------
Mike Tamoush
------------------------------
  • try this

    $EditRecord
    & "&NextURL=" & URLEncode($ReDirect)

    ------------------------------
    Mark Shnier (YQC)
    Quick Base Solution Provider
    Your Quick Base Coach
    http://QuickBaseCoach.com
    mark.shnier@gmail.com
    ------------------------------
    • MichaelTamoush's avatar
      MichaelTamoush
      Qrew Captain
      Perfect. Thanks!

      ------------------------------
      Mike Tamoush
      ------------------------------