Forum Discussion

QuintenQuinten's avatar
QuintenQuinten
Qrew Assistant Captain
7 years ago

Refresh the page using two variables in the button

I am aware on how to refresh the web page when only using one variable within the button, but I am struggling with the syntax on how to refresh when there are two variable present with in the code. Everything above the "javascript" part works, I tested it individually with two separate buttons, I just don't know how to combine them. 

My code:

var text URL = URLRoot() & "db/" & Dbid() & "?act=API_EditRecord&rid=" & [Record ID#]

& "&apptoken=b9pzvpjdbfk42zck9xawjk99nx5"

& "&usertoken=b3iezd_xfm_bpqsutvbg5gc46c7aepnhdm8me43"

& "&_fid_279=" & URLEncode("PLS Review")

& "&_fid_194="  & "\n\n" & Today() & URLEncode(" PLS Review");

var text Tracking = URLRoot() & [_DBID_TRACKING_LOGS] & "?act=API_AddRecord" 

& "&_fid_7=" & [Record ID#]

& "&apptoken=224zstbiqxkdpdnzxff4dzc6s95"

& "&_fid_17=" & URLEncode(Today());

"javascript:" &

"$.get('" & 

$Tracking & "&rdr=" & URLEncode($URL) &

"',function(){" &

"location.reload(true);" &

"});" 

& "void(0);
No RepliesBe the first to reply