Skip to main content
Question

Save and Redirect Help

  • February 10, 2020
  • 0 replies
  • 22 views

Hi,

I currently have this formula to do a save and redirect:

var text SAVE = "onclick=\"DoSaveAdd()";
var text REDIRECT = URLRoot() & "db/" & Dbid() & "?a=dbpage&pageID=9";

"<a class='Vibrant Success' & " & $SAVE & "; window.location.href=' "& $REDIRECT &" '\">Submit your request</a>"

The problem is, when i click the button, the record doesnt get saved. Any thoughts?
Thanks
!

------------------------------
GMacri
------------------------------

AdamKeever1
Forum|alt.badge.img+2
Instead of onclick, try linkaway:

href='javascript:LinkAway

Be sure you have this checked in the table advanced settings:


Here is code I am using to save and jump to a different form:

"<a class='Vibrant Success' style=\"border:0px solid green; background-color:#f55c24; text-align: center;-box-shadow: 0px 10px 10px -7px #000000, 9px 7px 10px 1px #000000; \nbox-shadow: 0px 10px 10px -12px #000000, 2px 2px 10px 1px #000000; \" \n\nhref='javascript:LinkAway(\""
& URLRoot()
& "db/"
& Dbid()
& "?a=dr&dfid=10&rid="
& [Record ID#]
& "&ifv=1"
&"\");'>Save</a>"


------------------------------
Adam Keever
------------------------------