Forum Discussion
QuickBaseCoachD
8 years agoQrew Captain
This is an example:
var text URL= URLRoot() & "db/" & [_DBID_TABLE_1] & "?act=API_AddRecord"
& "&_fid_6=" & URLEncode ([Record ID#])
& "&_fid_7=" & URLEncode ([Status])
& "&_fid_10=" & URLEncode ([Name])
& "&apptoken=" & "XXXX";
"javascript:" &
"$.get('" &
$URL &
"',function(){" &
"location.reload(true);" &
"});"
& "void(0);"
Get the API Add Record working first. Then add in the javascript refresh part. The reason is that you need to see if there are any error messages and that refresh will hide the success or failure message.
var text URL= URLRoot() & "db/" & [_DBID_TABLE_1] & "?act=API_AddRecord"
& "&_fid_6=" & URLEncode ([Record ID#])
& "&_fid_7=" & URLEncode ([Status])
& "&_fid_10=" & URLEncode ([Name])
& "&apptoken=" & "XXXX";
"javascript:" &
"$.get('" &
$URL &
"',function(){" &
"location.reload(true);" &
"});"
& "void(0);"
Get the API Add Record working first. Then add in the javascript refresh part. The reason is that you need to see if there are any error messages and that refresh will hide the success or failure message.