ChrisMacFarlane
8 years agoQrew Trainee
Problem with UserToken in Formula URL
I have a working Formula URL button which is changing the value in a checkbox, based on the current value. However, we're having problems with another user's use of the button to trigger a quickbase action (the related records won't update). Through some discussion with Quickbase support, they believe that I need to add a user token to the formula. I have the user token created, but I'm not sure how to add it to the formula URL. This is the current formula:
// make a formula variable to be the opposite of the checkbox condition.
var bool NewValue = not [Process for Submission] ;
var text URL =
URLRoot() & "db/" & Dbid () & "?act=API_EditRecord&rid=" & [Record ID#]
& "&_fid_9=" & URLEncode($NewValue);
"javascript:" &
"$.get('" &
$URL &
"',function(){" &
"location.reload(true);" &
"});" & "void(0);
// make a formula variable to be the opposite of the checkbox condition.
var bool NewValue = not [Process for Submission] ;
var text URL =
URLRoot() & "db/" & Dbid () & "?act=API_EditRecord&rid=" & [Record ID#]
& "&_fid_9=" & URLEncode($NewValue);
"javascript:" &
"$.get('" &
$URL &
"',function(){" &
"location.reload(true);" &
"});" & "void(0);