Forum Discussion

ElenaLarrabee1's avatar
ElenaLarrabee1
Qrew Captain
4 years ago

URL button to add new record and then go to that record

Hi everyone, I feel really silly asking this, but I can't figure out how to use a URL button to add a new record and then simply go to the newly added record. This is what I have currently. And, the only reason I'm using API_AddRecord instead of API_GenAddRecordForm is because I can't get it to set field 18 to what I want, but for whatever reason it does work with AddRecord. 

URLRoot() & "db/" & [_DBID_CREW_TIME_RECORDS]
& "?a=API_AddRecord"
& "&_fid_18=" 
& Now()
& "&apptoken=cynqae3bygzqysbuufhnqczijtxn"
& "&rdr="&URLEncode(URLRoot() & "db/" & Dbid() & "?a=doredirect&z=" & Rurl())​


Thank you!



------------------------------
Elena Larrabee
------------------------------
  • np

    URLRoot() & "db/" & [_DBID_CREW_TIME_RECORDS]
    & "?a=API_AddRecord"
    & "&_fid_18=" 
    & Now()
    & "&apptoken=cynqae3bygzqysbuufhnqczijtxn"
    & "&disprec=1"


    ------------------------------
    Mark Shnier (YQC)
    Quick Base Solution Provider
    Your Quick Base Coach
    http://QuickBaseCoach.com
    mark.shnier@gmail.com
    ------------------------------

    • ElenaLarrabee1's avatar
      ElenaLarrabee1
      Qrew Captain
      Ah, beautiful! Thank you SO much. And if I want them to land on the form in edit mode?

      ------------------------------
      Elena Larrabee
      ------------------------------
      • MarkShnier__You's avatar
        MarkShnier__You
        Icon for Qrew Legend rankQrew Legend
        There is no easy way to do that

        ------------------------------
        Mark Shnier (YQC)
        Quick Base Solution Provider
        Your Quick Base Coach
        http://QuickBaseCoach.com
        mark.shnier@gmail.com
        ------------------------------