Forum Discussion
QuickBaseCoachD
10 years agoQrew Captain
Here is my current best version. This one is setting a checkbox to be checked.
var text URL = URLRoot() & "db/" & "?act=API_EditRecord&_fid_80=1&rid=" &
[Record ID#];
"ja ascript:" &
"$.get('" &
$url &
"',function(){" &
"$.jGrowl('This Item has been put on PO CANCEL snooze', {life: 5000, theme:
'jGrowl-green'});" &
"});" &
" oid(0);"
The 5000 means 5 seconds until it fades away. I like this version as it the same green color as the native QuickBase pop ups.
Note that when you do these kind of pop ups, the pop-up will show a success message even if the URL formula completely fails. So it's up to you to be sure that there is no possible way that the URL formula will fail.
var text URL = URLRoot() & "db/" & "?act=API_EditRecord&_fid_80=1&rid=" &
[Record ID#];
"ja ascript:" &
"$.get('" &
$url &
"',function(){" &
"$.jGrowl('This Item has been put on PO CANCEL snooze', {life: 5000, theme:
'jGrowl-green'});" &
"});" &
" oid(0);"
The 5000 means 5 seconds until it fades away. I like this version as it the same green color as the native QuickBase pop ups.
Note that when you do these kind of pop ups, the pop-up will show a success message even if the URL formula completely fails. So it's up to you to be sure that there is no possible way that the URL formula will fail.
SumedhaWeerasur
7 years agoQrew Cadet
Hey Mark, This neat! But for some reason i have having some trouble getting it to work.
I created a url button and pasted in your code. The Javascript executes and i see the green message. But the checkbox field i have in fid_24 is not getting toggled.
My modified code is below
var text URL=URLRoot() & "db/" & "?act=API_EditRecord&_fid_24=1&rid=" & [Entry Number];
"javascript:" &
"$.get('" &
$url &
"',function(){" &
"$.jGrowl('This Item has been put on PO CANCEL snooze', {life: 5000, theme: \n'jGrowl-green'});" &
"});" &
" oid(0);"
can you spot anything weird with it?
I created a url button and pasted in your code. The Javascript executes and i see the green message. But the checkbox field i have in fid_24 is not getting toggled.
My modified code is below
var text URL=URLRoot() & "db/" & "?act=API_EditRecord&_fid_24=1&rid=" & [Entry Number];
"javascript:" &
"$.get('" &
$url &
"',function(){" &
"$.jGrowl('This Item has been put on PO CANCEL snooze', {life: 5000, theme: \n'jGrowl-green'});" &
"});" &
" oid(0);"
can you spot anything weird with it?