Forum Discussion

EOMDevelepors's avatar
EOMDevelepors
Qrew Captain
7 years ago

url and java script within one formula

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);"
  • 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().
  • Can you give the example what the final code looks like.  I also want to do this, but don't understand your written solution.