Discussions

Cancel and redirect to a form of a record off of a add form

  • 1.  Cancel and redirect to a form of a record off of a add form

    Posted 8 days ago

    Hello All!


    Its been a long day and i am stumped on a button. 

    I have a gen add form up on the screen and I get an error and I would like a button that says error and I want that button to be pressed and it should cancel the record and then take them to a form id of the record that they were speaking to! This is what I have so far!

    var text URLONE = "javascript:DoSaveCancel()";

    var text URLTWO = & "&NextURL=" & URLEncode(URLRoot() & "db/" & Dbid() &
    "?a=er&rid=" & [Record ID#] &
    "&dfid=14");

    $URLONE &
    "&rdr=" &URLEncode($URLTWO)

    Thoughts?



    ------------------------------
    Benjamin Brooks
    ------------------------------