Discussions

Expand all | Collapse all

Save and Redirect Help

  • 1.  Save and Redirect Help

    Posted 7 days ago
    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
    ------------------------------


  • 2.  RE: Save and Redirect Help

    Posted 6 days ago
    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
    ------------------------------