Refresh the page using two variables in the button

  • 0
  • 1
  • Question
  • Updated 2 years ago
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);"
Photo of Quinten

Quinten

  • 732 Points 500 badge 2x thumb

Posted 2 years ago

  • 0
  • 1

There are no replies.