Skip to main content
Solved

Have Approve Button Direct back to the Master Record

  • May 23, 2024
  • 0 replies
  • 142 views

Forum|alt.badge.img+6

I have an approve button and right now when the user uses it it directs them to the detail record that the approval button is for. How do I change the button to have it direct them back to the page they were on before they clicked the approve button. Here is how the formula is setup now.

URLRoot() & "db/" & [_DBID_Onboarding_details] & "?act=API_EditRecord&apptoken=*AppToken*&_fid_15=" & URLEncode(User()) & "&_fid_16=" & URLEncode(Today()) & "&_fid_26=1" & "&rid=" & [Record ID#] & "&rdr=" & URLEncode(URLRoot() & "db/" & Dbid() & "?a=dr&rid=" & [Record ID#])

Best answer by MarkShnierYou

var text Approve = URLRoot() & "db/" & [_DBID_Onboarding_details] & "?act=API_EditRecord&apptoken=*AppToken*&_fid_15=" & URLEncode(User()) & "&_fid_16=" & URLEncode(Today()) & "&_fid_26=1" & "&rid=" & [Record ID#];

var text RefreshPage =  URLRoot() & "db/" & Dbid() & "?a=doredirect&z=" & Rurl();

 
$Approve
& "&rdr=" & URLEncode($RefreshPage)

 

 

This topic has been closed for replies.

MarkShnierYou
Forum|alt.badge.img+24

var text Approve = URLRoot() & "db/" & [_DBID_Onboarding_details] & "?act=API_EditRecord&apptoken=*AppToken*&_fid_15=" & URLEncode(User()) & "&_fid_16=" & URLEncode(Today()) & "&_fid_26=1" & "&rid=" & [Record ID#];

var text RefreshPage =  URLRoot() & "db/" & Dbid() & "?a=doredirect&z=" & Rurl();

 
$Approve
& "&rdr=" & URLEncode($RefreshPage)