Forum Discussion

Kelly-AnnTainto's avatar
Kelly-AnnTainto
Qrew Cadet
25 days 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

 

4 Replies

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

     

    Auto save when redirected away from the page.

    • Kelly-AnnTainto's avatar
      Kelly-AnnTainto
      Qrew Cadet

      Hi Mark,

      I didn't.  I've updated the setting to check that box but, unfortunately, it still provides the same error.  However, I believe it may be an issue with the new style form.   I've had similar issues in the past where something doesn't work on the new form, but will on the old style form.   So, to test out, I switched over to the old style and ....it worked.    I switched back to the new form... and it presented the error page.   

      • MarkShnier__You's avatar
        MarkShnier__You
        Icon for Qrew Legend rankQrew Legend

        :). Sounds like you should be able to report it as a bug or shortcoming or deficiency of new forms.