Forum Discussion
5 Replies
Sort By
- QuickBaseJunkie
Qrew Legend
You're half way there! You just need to specify the next url at the end of your formula.URLRoot() & "db/" & [DBID XXX] & "?a=API_GenAddRecordForm&_fid_21=" & URLEncode ([XXX]) & "&dfid=18 &" & "nexturl=" & URLEncode(URLRoot() & "db/" & [DBID XXX] & "?a=dr&dfid=18&rid=" & [Record ID#])
- QuickBaseCoachDQrew CaptainAlas, when you add a record, you do not know the Record ID# until it gets created. So I'm stumped on that one.
- QuickBaseJunkie
Qrew Legend
Ah, good point. The formula URL above was triggered off of an existing record, so it's actually just directing to that record and not the new one...
I'll need to test a bit more.
@Phil Pinkham, where is your button located?
- PhilPinkhamQrew TraineeThe button is located on the form of the parent record. That "nexturl=" parameter is something I was not aware of. I'd used "&rdr=" before in other use cases, but that opens up a lot of possibilities. Thanks! That is a big help in and of itself beyond this specific issue.
- QuickBaseJunkie
Qrew Legend
That's great! I think you may need to use the nexturl to direct to a page or report vs back to the new record... at a minimum they wont end up on the wrong from.
Or in the case of the formula I provided above, you could back to the parent record by using its DBID.