np,
But the question is where to return the user to once you save the record.
This code will add the child and refresh the record you are sitting on. Presumably that is the Parent record and the user will then see the child an an embedded child record on the parent so they will know that the button worked.
Note that this API is AddRecord instead of GenAddRecordForm
var text URL = URLRoot() & "db/" & [_DBID_ACTIVITIES] & "?a=API_AddRecord&_fid_38=" & URLEncode ([Record ID#])
& "&apptoken=xxxxxxxxxx"& "&_fid_6=" & "Mailed Letter"
& "&_fid_125=" & "Birthday"
& "&_fid_23=" & "Outreach"
"javascript:" &
"$.get('" &
$URL &
"',function(){" &
"location.reload(true);" &
"});"
& "void(0);"
When you do an API like this you either need to disable the need for Application Tokens, which you find in Settings for the App and then App properties, or else you need to create an Application Token and supply it. That s an extra layer of security and its not for me really so suggest that you don't need it, but most of my client don't bother with that extra layer of security.
https://help.quickbase.com/user-assistance/app_tokens.html