Forum Discussion
QuickBaseCoachD
7 years agoQrew Captain
Great,
So that magic of that javascript is that it will refresh the page - meaning the record or the report that you are on, so very handy.
You set up that formula URL to do one API call and then the javascript runs that 1 API and refreshes the page.
There is an alternate code like this
"javascript:" &
"$.get('" &
$url &
"',function(){" &
"$.jGrowl('This Item has been put on PO CANCEL snooze', {life: 5000, theme: 'jGrowl-green'});" &
"});" &
"void(0);"
which does not refresh the page but rather puts up a quiet fade away pop up message for, in this case 5 seconds (5000 miliseconds)
So that magic of that javascript is that it will refresh the page - meaning the record or the report that you are on, so very handy.
You set up that formula URL to do one API call and then the javascript runs that 1 API and refreshes the page.
There is an alternate code like this
"javascript:" &
"$.get('" &
$url &
"',function(){" &
"$.jGrowl('This Item has been put on PO CANCEL snooze', {life: 5000, theme: 'jGrowl-green'});" &
"});" &
"void(0);"
which does not refresh the page but rather puts up a quiet fade away pop up message for, in this case 5 seconds (5000 miliseconds)