Forum Discussion

MichaelTamoush's avatar
MichaelTamoush
Qrew Captain
4 years ago

Redirect after user edit

Am I forgetting how NextURL works? Does it not work with a user editing a record. I'm only trying to have a user edit a record, on a specific form, then once they hit save redirect. What am I doing wrong?

Using my code below, it is like it doesnt see the redirect and just lands on the App home page. Does NextURL not work when editing a record, or do I have a typo I am missing?

var text Edit = URLRoot() & "db/" & "bpxsufvbt?a=er&dfid=10&rid=" & [Related Project];
var text Redirect = URLRoot() & "db/" & "bpu98ejpu?a=dbpage&pageID=44";

"<a class='OpenAsPopup' data-height=500 data-width=700 style=\"background: #7aace0; border-radius: 5px; color: #ffffff; display: inline-block; padding: 2px 0px; width:150px; text-align: center; border: 1px solid #030404; font-size: 11px \"href='"
& $Edit
& "&NextURL=" & URLEncode($Redirect)
& "'>Add Contract ID/Address</a>",

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

14 Replies

  • does the Redirect work on its own?  is that Syntax correct.  i did not test.

    I thought the syntax was like

    var text Redirect = URLRoot() & "db/" & "bpu98ejpu?a=showpage&pageID=44";

    ------------------------------
    Mark Shnier (YQC)
    Quick Base Solution Provider
    Your Quick Base Coach
    http://QuickBaseCoach.com
    mark.shnier@gmail.com
    ------------------------------
    • MichaelTamoush's avatar
      MichaelTamoush
      Qrew Captain
      Yeah the Redirect does work on it's own. Though I actually remember the syntax of the 'showpage' as well, which seems to work if I hard type it in.

      But short answer, yes the redirect works on its own.

      ------------------------------
      Mike Tamoush
      ------------------------------
      • MarkShnier__You's avatar
        MarkShnier__You
        Icon for Qrew Legend rankQrew Legend
        will it work if you change the syntax to use showpage  - I assume this is just a Rich Text page with words

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