Forum Discussion
// Begin button style
var text bgcolor = "#099F28";
var text txtcolor = "white";
var text style = "style=\"text-decoration: none; box-shadow: 3px 3px 1px #888888; background:" & $bgcolor & "; border-radius: 3px; padding: 5px 8px; color: " & $txtcolor & "; display: inline-block; font-weight: normal;font: 700 24px/1 \"Calibri\", sans-serif; text-align: center; text-shadow:none;";
// End button style
var text URL = URLRoot() & "db/"& Dbid() & "?a=API_EditRecord&rid="& [Record ID#]
& "&_fid_869=1"
& "&rdr="
& URLEncode(URLEncode( URLRoot() & "db/"& [_DBID_ACTIVITIES] & "?a=API_AddRecord"
& "&_fid_6=" & [Location ID]
& "&_fid_10=" & URLEncode([Task Number])
& "&_fid_14=" & URLEncode("Service Fees")
& "&_fid_15=" & [Install Date]
& "&_fid_35=" & URLEncode([Related Project])
& "&_fid_42=1"));
"<a " & $style & " href=\"javascript:" & "$.get('" & $URL & "', function(){" & "location.reload();" &
"});" & "void(0);\"> MY BUTTON NAME </a>"