Forum Discussion

Kelly-AnnTainto's avatar
Kelly-AnnTainto
Qrew Cadet
15 hours ago

Save & Continue on New Record form

Hello all, 

I'm trying to create a Save & Continue button for an add form that will return to the record to continue editing.   I found this thread ( Add Save and Keep Working Button on form for a new record | Qrew Discussions ) from a few years ago which is exactly what I want to do, but it doesn't seem to be working as stated anymore.   

var text URL = URLRoot() & "db/" & Dbid() & "?a=er&rid=%%RID%%"; 

var text link = "<a href='" & $URL & "' data-replaceRid='true' style='font-size: 11pt;margin-left: 5px; margin-top: 0px; height: 33px; width: 160px; text-align:center;background-color:#13294d;color:white;background-image: linear-gradient(to bottom, #13294d 0%, #13294d 100%);' class='SaveBeforeNavigating Vibrant'>Save and Continue</a>";

$link

When I click the created button I do see the "saving record" alert appear and then the green "Record saved!"  but then directly after a window pops up "Leave site?  Changes you made may not be saved." with options of Leave and Cancel.     It doesn't matter what option I select, the next screen is the quickbase error page "Record Not Found" and to either go to the application's dashboard or go back to the previous page.   Although the record is there when I go back in manually.    I'm not sure what to add to the formula to get it back to the created record in edit form.    

Thanks,

Kelly

 

1 Reply

  • Do you have this check box checked on the advanced settings for the table

     

    Auto save when redirected away from the page.