Skip to main content
Question

JavaScript Warning, How can I get this working again?

  • November 21, 2022
  • 0 replies
  • 80 views

Forum|alt.badge.img+9
I have a button that when clicked changes a Date/Time field (57) to when the button was clicked.  I am now getting a JavaScript warning when I open the properties window of the button field.  How can I get this working again?
Thanks,
Brian



------------------------------
Brian Dunk
------------------------------
This topic has been closed for replies.

MarceloBenavide
Forum|alt.badge.img+8
Hello. You can't use JavaScript in url formulas. You need use a code page.

Thank you

Marcelo Benavides Torres 



MarkShnierYou
Forum|alt.badge.img+24
Existing JavaScript URL formula buttons will continue to run indefinitely. But as you can see they are no longer editable. If you post your actual code and not just a screenshot I will show you how to change that code to have the same effect but not using JavaScript.  

Here for example is how we do it now.  Note the new syntax for how to refresh the page.

var text Approve = URLRoot() & "db/" & Dbid() & "?act=API_EditRecord&rid=" & ToText([Record ID#])
& "&_fid_144=Approved";

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

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

------------------------------
Mark Shnier (Your Quickbase Coach)
mark.shnier@gmail.com
------------------------------