Redirect to Newly created Child Record

  • 0
  • 1
  • Question
  • Updated 1 year ago
  • Answered
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.
Photo of Angel

Angel

  • 724 Points 500 badge 2x thumb
  • confused

Posted 1 year ago

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

QuickBaseCoach App Dev./Training, Champion

  • 51,436 Points 50k badge 2x thumb
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()
Photo of Angel

Angel

  • 724 Points 500 badge 2x thumb
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?
Photo of QuickBaseCoach App Dev./Training

QuickBaseCoach App Dev./Training, Champion

  • 51,436 Points 50k badge 2x thumb
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?
Photo of Angel

Angel

  • 724 Points 500 badge 2x thumb
yes, got it. Thanks. Appreciate it
Photo of Matthew Neil

Matthew Neil

  • 31,438 Points 20k badge 2x thumb
the "&z=" documentation is not publicly made available, but a hint is it has to do with the QB branding and role permission interpretations.