Approval Button redirect to View Form
I used the magic buttons app Approval Button, and it seems to work great! But I noticed that it redirects back to whichever version of the form you were on when you clicked the button - if you click it from the View Form, it takes you back to the View Form version, whereas if you click it from the Edit view, it keeps you in Edit view. I'd like it to redirect to the View view in either case so that the User understands that it has been saved. Anyone know how to do this? Here's the formula:
URLRoot() & "db/" & Dbid() &
"?a=API_EditRecord&apptoken=APPTOKEN&rid="
&[Record ID#] & "&_fid_139=Approved&_fid_141=" &
Now() & "&_fid_140=" & UserToEmail(User()) & "&rdr="
& URLEncode(URLRoot() & "db/" & Dbid() &"?a=doredirect&z=" & Rurl())
np, change the last part to this
& "&rdr="
& URLEncode(URLRoot() & "db/" & Dbid() &"?a=dr&rid=" & [Record ID#])