Forum Discussion
QuickBaseCoachD
7 years agoQrew Captain
Elisha, there is possibly an easier solution.
Your "add record" can specify where to go to upon Save. ie the NextURL.
var text ADD = URLRoot() & "db/" & [_DBIDxxxx] & "?API_GenAddRecordForm&ifv=1":
var text RedirectTo = the url to redirect to;
$ADD
& "&NextURL=" & URELEncode($RedirectTo )
Your "add record" can specify where to go to upon Save. ie the NextURL.
var text ADD = URLRoot() & "db/" & [_DBIDxxxx] & "?API_GenAddRecordForm&ifv=1":
var text RedirectTo = the url to redirect to;
$ADD
& "&NextURL=" & URELEncode($RedirectTo )
- TateForgey6 years agoQrew Assistant CaptainI've never quite understood how redirects work and I could not get any of these solutions to work for me. I created a URL button intended to be used in the edit view of a form that has "ifv=0" added. No matter what I try to put in the "&NextURL" portion of this I am always just redirected to the dashboard of the app. I don't know why. Why?!?!
HOWEVER, if I make sure that the "Save parent record automatically" is checked in the table's advanced settings I simply put the URL I want to redirect to in the button. The record saves on it's own because that setting is engaged and I end up at the redirect page. Great! BUT.....
These buttons do not work on mobile. The last button I describe with the URL I want end up shows in the edit view in mobile (I haven't seen any buttons that shows up in a report) and successfully redirects to the URL. but for reasons I don't understand the record does not save. Why?!?!
Any ideas about how I can get a save and redirect to work in mobile? - QuickBaseCoachD6 years agoQrew CaptainI can't help you for the mobile question but if you have a question about Desktop mode i can try to help. I'm not sure from your post above what specific question you have what your current non working code is.
- TateForgey6 years agoQrew Assistant CaptainThanks, Coach. Let's start with the code that is your response here. Is this a button you would put on a dashboard? That API is going to generate the form to add a record, right? So, it seems like it doesn't make sense to put it on a record, but maybe I'm wrong about that.
I'm looking for a situation where I open the edit view of a record, then someone edits the record and I replace the save button with a button that saves and redirects to a rich text page I have created. Is this type of code the way I would do that?