Formula URL Redirect in Javascript

  • 0
  • 1
  • Question
  • Updated 1 year ago
I'm interested in modifying the javascript below to include a location redirect in the script. 

//code for the redirect var
var text DisplayRecord=
URLRoot() & "db/" & [_DBID_TASKS_POC]
& "?a=td";


//execution section
"javascript:" & 
"$.get('" & $AddRecordOne & "').then(function(){" &
"$.get('" & $AddRecordTwo & "').then(function(){" &
"$.get('" & $AddRecordThree & "').then(function(){" &
"$.get('" & $AddRecordFour & "').then(function(){" & 
"$.get('" & $AddRecordFive & "').then(function(){" &
"$.get('" & $AddRecordSix & "').then(function(){" &
"$.get('" & $AddRecordSeven & "').then(function(){" &
"$.get('" & $AddRecordEight & "').then(function(){" &
"$.get('" & $AddRecordNine & "').then(function(){" &
"$.get('" & $AddRecordTen & "').then(function(){" &
"})" & 
"})" & 
"})" & 
"})" & 
"})" & 
"})" & 
"})" & 
"})" & 
"})" & 
"});"
& "void(0);"

//end code

Where do I insert $DisplayRecord? I've tried numerous different spots, can't get it to work. Thanks in advance!
Photo of Clayton Rountree

Clayton Rountree

  • 264 Points 250 badge 2x thumb

Posted 1 year ago

  • 0
  • 1

Be the first to post a reply!