Forum Discussion
MikeTamoush
Qrew Commander
Mark, will the relatively new return function work for this case?
& "&rdr="
& URLEncode(URLRoot() & "db/" & Dbid() & "?a=doredirect&z=" & Rurl())
------------------------------
Mike Tamoush
------------------------------
& "&rdr="
& URLEncode(URLRoot() & "db/" & Dbid() & "?a=doredirect&z=" & Rurl())
------------------------------
Mike Tamoush
------------------------------
StevenShweky
2 years agoQrew Trainee
- MarkShnier__You2 years agoQrew Champion@Mike Tamoush I did a test and in fact it works very nicely. This code will return the user (after saving the child) to the original form whether it be the main form, say form #2 or an alternative form like form 10 or a report. So it remembers where the user launched form.
var text AddChild = URLRoot() & "db/" & [_DBID_CHILD] & "?a=nwr&_fid_7=" & URLEncode ([Record ID#]);
var text ReturnToOriginalLaunchPoint = URLRoot() & "db/" & Dbid() & "?a=doredirect&z=" & Rurl();
$AddChild
& "&NextURL=" & URLEncode($ReturnToOriginalLaunchPoint)
------------------------------
Steven Shweky
------------------------------