Becky, the native Add Child button will do that for you. Maybe you made a change to that button and took away that functionality.
Here's is what the typical button code looks like
URLRoot() & "db/" & [_DBID_TIME_RECORDS] & "?a=API_GenAddRecordForm&_fid_11=" & URLEncode ([Record ID#])
& "&z=" & Rurl()
That last part in bold is what makes it return to the parent record. There are fancier ways to do this if you have a special situation but the native behaviour should do what you want.
------------------------------
Mark Shnier (Your Quickbase Coach)
mark.shnier@gmail.com------------------------------
Original Message:
Sent: 01-19-2023 09:03
From: Becky Heineman
Subject: Save and Return to Parent Record
Hi All - newb here and I'm having trouble with something simple.
Our app is used to pass requests around our team. We have a Notes table (child) where all of the detailed communications go that attach to the Requests table (parent). I'm trying to create a button when someone completes a Note record, it save and return them to the Request record they were adding the note to so they can continue editing (if necessary) the Requests record.
it seems it would need to be a var text URLONE / URLTWO situation but I'm a bit at a loss after that. Any assist would be much appreciated!
------------------------------
Becky
------------------------------