Rhonda, I think what you're asking for is what I thought you were asking for. The user is sitting on an unsaved record and do you want a button that will save the record without any annoying pop-ups and carry on with the rest of the URL.
var text URL = URLRoot() & "db/btcpg7sph?a=API_GenAddRecordForm&dfid=2" &
"&_fid_18=" & URLEncode([Related Request]) &
"&_fid_20=" & URLEncode([Request - Order Number]) &
"&_fid_19=" & URLEncode([Request - Name]);
"<a class='SaveBeforeNavigating' data-replaceRid=true style=\"text-decoration:none; background: #1ba802; border-radius: 5px; color: #ffffff; display: inline-block; padding: 0px 0px 0px 0px; width:100px; text-align: center; text-shadow: none; border: 2px solid #1ba802; font-size: 12px \"href='"
& $URL
& "'>Add Child</a>"
That code above should save the unsaved record and then put up an add form with some fields pre- populated.
------------------------------
Mark Shnier (Your Quickbase Coach)
mark.shnier@gmail.com
------------------------------