Forum Discussion

Re: JavaScript edit record on a certain table.

There was a semi colon missing. Now it works. Thanks.

I want it to redirect to the url the user is right now either the table or the form. I need to pass the url from the formula but its not working. I did:

"javascript:" &
"var QBU_rid = '" & [Maximum Record ID# In] & "';" &
"var currentUrl = '" & URLRoot() & "db/" & "bnqepesti" & "';" &
"$.getScript(gReqAppDBID + '?a=dbpage&pagename=myscript.js');" &
"void(0);")

But its going to the home page instead of the current page.

I also wanted to add a pic file for the button. I guess I need to add that in the myscript.js page

Thanks again
No RepliesBe the first to reply