url and java script within one formula

  • 0
  • 1
  • Question
  • Updated 3 months ago
  • Doesn't Need an Answer
I want to call a script page and in the same formula also call a url. See my code below. For some reason its only executing the java script part but not the code until there. Ant suggestions?

Thanks

URLRoot()&"DB/"&Dbid()&"?A=API_EditRecord&apptoken=[my_token_here]&RID="&[Record ID#]
&"&_fid_23="&URLEncode("today")
&"&_fid_19=Done" &

"javascript:" &
"var QBU_rid = '" & [Related Project] & "';" &
"$.getScript(gReqAppDBID + '?a=dbpage&pagename=ProposalRejected.js');" &
"void(0);"
Photo of Micro Dev

Micro Dev

  • 834 Points 500 badge 2x thumb

Posted 3 months ago

  • 0
  • 1
Photo of Micro Dev

Micro Dev

  • 834 Points 500 badge 2x thumb
I figured it out.

You need to pass the url into the script page and in the script page pass the url in the .get().