Forum Discussion
QuickBaseCoachD
9 years agoQrew Captain
This code will make a boring grey button but it will not disturb the screen, but rather it will do a quiet pop up
var text URL= URLRoot() & "db/" & dbid() & "?act=API_EditRecord"
& "&rid=" & URLEncode ([Record ID#])
& "&_fid_50=" & "Approved")
& "&apptoken=" & "XXXX";
"javascript:" &
"$.get('" &
$url &
"',function(){" &
"$.jGrowl('DSM Approved', {life: 5000, theme: 'jGrowl-green'});" &
"});" &
"void(0);"
The 5000 means 5 seconds before the pop up fades away, you can adjust that. The syntax of that last bit is kinda wild, so save it for future use. :)
var text URL= URLRoot() & "db/" & dbid() & "?act=API_EditRecord"
& "&rid=" & URLEncode ([Record ID#])
& "&_fid_50=" & "Approved")
& "&apptoken=" & "XXXX";
"javascript:" &
"$.get('" &
$url &
"',function(){" &
"$.jGrowl('DSM Approved', {life: 5000, theme: 'jGrowl-green'});" &
"});" &
"void(0);"
The 5000 means 5 seconds before the pop up fades away, you can adjust that. The syntax of that last bit is kinda wild, so save it for future use. :)