Forum Discussion

GeorgeKhairalla's avatar
GeorgeKhairalla
Qrew Trainee
3 years ago

Any method to replace the Javascript reload?

Hi!

I'm wondering now that the Javascript is no longer allowed in Quickbase, is there any method that could replace certain easy previously used javascripts?
My current example is a simple record edit toggle, then reload the record

var text url =
If([Show Change Log] = false,
URLRoot() & "db/" & Dbid() & "?act=API_EditRecord&apptoken=xxxxxxxxxxxxxxxxxxxxxxxx&rid=" & [Record ID#] & "&_fid_325=1",
URLRoot() & "db/" & Dbid() & "?act=API_EditRecord&apptoken=xxxxxxxxxxxxxxxxxxxxxxxx&rid=" & [Record ID#] & "&_fid_325=0");

"javascript:" &
"$.get('" &
$url &
"',function(){" &
"location.reload();" &
"});" &
"void(0);"

Any other creative ways of implementing the same without JS?

Thanks!

------------------------------
George Khairallah
CTO
gotomyerp, LLC
------------------------------

2 Replies

  • np.

    var text URL =
    If([Show Change Log] = false,
    URLRoot() & "db/" & Dbid() & "?act=API_EditRecord&apptoken=xxxxxxxxxxxxxxxxxxxxxxxx&rid=" & [Record ID#] & "&_fid_325=1",
    URLRoot() & "db/" & Dbid() & "?act=API_EditRecord&apptoken=xxxxxxxxxxxxxxxxxxxxxxxx&rid=" & [Record ID#] & "&_fid_325=0");

    var text RefreshPage = URLRoot() & "db/" & Dbid() & "?a=doredirect&z=" & Rurl();

    $URL
    & "&rdr=" & URLEncode($RefreshPage)


    ------------------------------
    Mark Shnier (YQC)
    mark.shnier@gmail.com
    ------------------------------
    • GeorgeKhairalla's avatar
      GeorgeKhairalla
      Qrew Trainee
      Works a treat! Thanks Mark! :)

      ------------------------------
      George Khairallah
      CTO
      gotomyerp, LLC
      ------------------------------