ElenaLarrabee1
4 years agoQrew Captain
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.
------------------------------
Elena Larrabee
------------------------------
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
------------------------------