Skip to main content
Question

How to create a save button to save a new record and then redirect to outside URL

  • June 20, 2018
  • 0 replies
  • 70 views

I am wanting to replace the default green "Save" button with a button that will save the new record and then redirect the user to a URL outside QB. I'm sure this is not that difficult, but I am stumped. 
This topic has been closed for replies.

  • Registered
  • June 21, 2018
Hi Robert, I am also interested in this solution, as we use it for our mobile app, at this point we haven't gotten it right yet, but will keep you posted.

Hi Paul!

I found this on the QB Exchange (Magic Buttons) and it works perfectly for what I'm wanting to do.


"<a  class='Vibrant Success' href='javascript:LinkAway(\"" & "https://www.destinationswebpage.com"; & "\");' >Submit & redirect</a>"


// This works because you have turned on the table's advance settings, "Save parent record automatically when a child record is created."
// This also is borrowing the LinkAway that gets automatically added for formula url fields.  We are invoking it here so when we are directed to the success.html page the record is first saved.

  • Registered
  • June 21, 2018
See this demo which (1) submits the form using  fetch API and FormData and (2) redirects to the FormData info page at MDN:

Save & Go ~ Add New Favorite Mathematician

https://haversineconsulting.quickbase.com/db/bnsthzcid?a=nwr

Pastie Database
https://haversineconsulting.quickbase.com/db/bgcwm2m4g?a=dr&rid=667