Forum Discussion
FenilPatel
7 years agoQrew Member
I used your code in my case and it gives me error: "A variable declaration must end with a semi-colon." When I add a semicolon at the end I get following syntax error:
Formula syntax error
A formula cannot end with an assignment to a variable declaration.
See below:
Here is my code with token removed for privacy.
var text URL = URLRoot() & "db/" & Dbid() & "?act=API_EditRecord&apptoken=bw7794gchxhnxvdd8y8shtyxg28&\nrid=" & [Record ID#] &
"&_fid_174=" & URLEncode("Ready for Scrubbing")&
"&_fid_171=" & Today() &
"&_fid_170=" & UserToEmail(User()) &
"javascript:" &
"$.get('" &
$URL &
"',function(){" &
"location.reload(true);" &
"});"
& "void(0);";
Please let me know what is wrong here?
Thanks,
Fenil
Formula syntax error
A formula cannot end with an assignment to a variable declaration.
See below:
Here is my code with token removed for privacy.
var text URL = URLRoot() & "db/" & Dbid() & "?act=API_EditRecord&apptoken=bw7794gchxhnxvdd8y8shtyxg28&\nrid=" & [Record ID#] &
"&_fid_174=" & URLEncode("Ready for Scrubbing")&
"&_fid_171=" & Today() &
"&_fid_170=" & UserToEmail(User()) &
"javascript:" &
"$.get('" &
$URL &
"',function(){" &
"location.reload(true);" &
"});"
& "void(0);";
Please let me know what is wrong here?
Thanks,
Fenil