Skip to main content
Question

Edit a Record in a Different form and then stay on that form after saving

  • November 5, 2021
  • 0 replies
  • 49 views

Forum|alt.badge.img+6
I am trying to create a URL formula button on a form that Edits the Record in a Different form and then stays on that form after saving. This formula returns me to the orginal form after saving. What do I add to to the formula that keeps me on the new form?

URLRoot() & "db/" & Dbid() &
"?a=er&rid=" & [Record ID#] &
"&dfid=29"

------------------------------
George Bramhall
------------------------------
This topic has been closed for replies.

MarkShnierYou
Forum|alt.badge.img+24
try this

var text EDIT = URLRoot() & "db/" & Dbid() & "?a=er&dfid=10&rid=" & [Record ID#];
var text Display = URLRoot() & "db/" & Dbid() & "?a=dr&dfid=10&rid=" & [Record ID#];

$EDIT
& "&NextURL=" & URLEncode($Display)

------------------------------
Mark Shnier (YQC)
mark.shnier@gmail.com
------------------------------

  • Registered
  • November 5, 2021
I solved this issue with a custom edit button using this url:
URLRoot() & "db/" & Dbid() & "?a=er&dfid=yourformID&rid=" & URLEncode([Record ID#])& "&z=" & Rurl()

z=Rurl() should return you to the url from where you pressed the edit button, so in this case, the same form in display mode.

------------------------------
Ahuva Brown
------------------------------