Skip to main content
Question

url and java script within one formula

  • August 6, 2018
  • 0 replies
  • 33 views

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);"

  • Author
  • Registered
  • August 7, 2018
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().

  • Registered
  • February 12, 2019
Can you give the example what the final code looks like.  I also want to do this, but don't understand your written solution.