There is a data-replaceRID component that you can place for new ones that QB will interpret and land you on the newly created record. This is an example of rich-text field using this:
var text url = URLRoot() & "db/" & Dbid() & "?a=er&rid=%%rid%%";
var text link = "<a href='" & $url & "' data-replaceRid='true' style='font-size: 11pt;margin-left: 5px; margin-top: 0px; height: 33px; width: 160px; text-align:center;background-color:#13294d;color:white;background-image: linear-gradient(to bottom, #13294d 0%, #13294d 100%);' class='SaveBeforeNavigating Vibrant'>Save and Continue</a>";
$link
The two components are rid=%%rid%% in the url and then the data-replaceRID param in the button itself.
------------------------------
Chayce Duncan
------------------------------