Forum Discussion
QuickBaseCoachD
8 years agoQrew Captain
No Problem
Here is an example of a URL Formula field
var text NewCheckboxValue = IF([Status]="New","0","1");
var text URL= URLRoot() & "db/" & [_DBID_TABLE_1] & "?act=API_EditRecord"
& "&rid=" & URLEncode ([Record ID#])
& "&_fid_7=" & $New Status
& "&apptoken=" & "XXXX";
"javascript:" &
"$.get('" &
$URL &
"',function(){" &
"location.reload(true);" &
"});"
& "void(0);"
That last stuff is just boilerplate code (as long as you name your formula variable URL) which refreshes the page.
Here is an example of a URL Formula field
var text NewCheckboxValue = IF([Status]="New","0","1");
var text URL= URLRoot() & "db/" & [_DBID_TABLE_1] & "?act=API_EditRecord"
& "&rid=" & URLEncode ([Record ID#])
& "&_fid_7=" & $New Status
& "&apptoken=" & "XXXX";
"javascript:" &
"$.get('" &
$URL &
"',function(){" &
"location.reload(true);" &
"});"
& "void(0);"
That last stuff is just boilerplate code (as long as you name your formula variable URL) which refreshes the page.