Forum Discussion

AngelAngel's avatar
AngelAngel
Qrew Assistant Captain
8 years ago

Redirect to Newly created Child Record

I have a button create a child record from the parent record. This has been established by using the OOB parent child relationship. When I call/click of this button--> this is redirected to the child form, on saving the child record, the default behavior is to redirect the page to the parent record. Is there a way, I could stay in edit mode to the child record itself after saving the child record instead of redirecting to the parent record.

Any inputs are appreciated. 
Thanks in advance.
  • Where is says this at the end of the Add Child button

    & "&z=" & Rurl()

    Just comment that out or erase that part of the code.

    URLRoot() & "db/" & [_DBID_TIME_RECORDS] & "?a=API_GenAddRecordForm&_fid_11=" & URLEncode ([Record ID#])
    & "&_fid_21=" & [Related Client]
    //& "&z=" & Rurl()
    • AngelAngel's avatar
      AngelAngel
      Qrew Assistant Captain
      This was easy, and I thought I will have to somehow redirect it to the child record. 
      On this note, I would like to ask, is there any documentation on what &z parameter
      does?
    • QuickBaseCoachD's avatar
      QuickBaseCoachD
      Qrew Captain
      The

      & "&z=" & Rurl()

      says "and upon save Return to the URL that you came from.  "RURL".

      But I do not understand your comment.  You wanted to leave the user on the child record, right?  And now it does that right?
    • AngelAngel's avatar
      AngelAngel
      Qrew Assistant Captain
      yes, got it. Thanks. Appreciate it