KenCasser
7 years agoQrew Cadet
Calling two variables in a Formula URL Field
I have a Formula URL field whose two formulas are as follows:
var text URLONE = "javascript:void(copyMasterDetailButtonHandler('&recurse=false©Fid=117&destrid=0&sourcerid=" & [Record ID#] & "', 'mydbid'))"
and
var text URLTWO = "https://me.quickbase.com/db/homedbid?act=API_SetDBVar";
& "&varname=" & URLEncode("lQnum")
& If($da<>[lQda],
"&value=" & URLEncode("02"),
If(ToNumber($y)<9,
"&value=" & URLEncode("0" & ToText(ToNumber($y)+1)),"&value=" & URLEncode(ToText(ToNumber($y)+1))));
By executing $URLONE or $URLTWO, they work fine. Combining them so that they execute in order gives me the error - Uncaught ReferenceError: Invalid left-hand side in assignment
$URLONE & "&rdr=" & URLEncode($URLTWO)
What am I doing wrong?
Thank you!
var text URLONE = "javascript:void(copyMasterDetailButtonHandler('&recurse=false©Fid=117&destrid=0&sourcerid=" & [Record ID#] & "', 'mydbid'))"
and
var text URLTWO = "https://me.quickbase.com/db/homedbid?act=API_SetDBVar";
& "&varname=" & URLEncode("lQnum")
& If($da<>[lQda],
"&value=" & URLEncode("02"),
If(ToNumber($y)<9,
"&value=" & URLEncode("0" & ToText(ToNumber($y)+1)),"&value=" & URLEncode(ToText(ToNumber($y)+1))));
By executing $URLONE or $URLTWO, they work fine. Combining them so that they execute in order gives me the error - Uncaught ReferenceError: Invalid left-hand side in assignment
$URLONE & "&rdr=" & URLEncode($URLTWO)
What am I doing wrong?
Thank you!