Skip to main content
Question

Redirect to same page in form

  • January 2, 2026
  • 0 replies
  • 137 views

Forum|alt.badge.img+3

Hi, 

I have this formula URL where the user submits all branch. when the user clicks the button it comes the chrome prompt of Leaving the site? (Picture below) 

This the code i have written in the formula url field: 

var text markCompleted = 
URLRoot() & "db/" & Dbid() & "?a=API_EditRecord" & "&apptoken=" &
"&rid=" & URLEncode([Record ID#]) &
"&_fid_921=1" &
"&rdr="&URLEncode( URLRoot() & "db/" & Dbid() & "?a=er&dfid=34&rid=" & ToText([Record ID#]) & "&page=15")

$markCompleted


Can someone help me fix this? 

**I have remove the token. 

MarkShnierYou
Forum|alt.badge.img+24

No problem. This is probably a very old app. Go to the Table Advanced Settings and set this setting to check

Auto save when redirected away from the page.

that has been the default for many years, so this must be an old app that is still defaulted to be unchecked

 


Forum|alt.badge.img+3
  • Author
  • Registered
  • January 3, 2026

Hi Mark, 

I have this setting checked already. I am using the same structure of the formula URL in other button with different field ID and page number everything else is the same which works as intended. 


MarkShnierYou
Forum|alt.badge.img+24

I am not seeing any syntax errors in your formula. 

Are you running this button in Add Mode or in Edit Mode?  It is not going to run in Add Mode as constructed.


Forum|alt.badge.img+3
  • Author
  • Registered
  • January 5, 2026

Hi Mark, 

Yes, it is on add mode. How would I do it in Edit Mode?