Forum Discussion

JeffPeterson1's avatar
JeffPeterson1
Qrew Captain
5 years ago

URL button with pop up to collect info

Hello,

I have a URL button that is used to check a checkbox and update a status field, then some javascript to refresh the page.   I would like also to pop up a dialog to ask the user to select a reason from a dropdown from another field in the same table (Text - Multiple Choice, fid_153) as part of this process.    

How could I go about doing that with this button?:

var text recallbutton =URLRoot() & "db/" & Dbid () & "?act=API_EditRecord&rid=" & [Record ID#] & "&_fid_135=1" & "&_fid_131=Recalled";

If([IsRecalled]=true or (Now())<[Date Created]+Minutes(10) or [SV - Field Rep - App ID] = "", "",

"javascript:" &
"$.get('" &
$recallbutton &
"',function(){" &
"$.jGrowl('Dispatch has been recalled.', {life: 5000, theme: 'jGrowl-green'});" &
"setTimeout(function(){ location.reload(); },500);" &
"});" &
"void(0);")


Thanks for any assistance.



------------------------------
Jeff Peterson
------------------------------
  • I'm pretty sure you would need to have a javascript  code page written for that for that.  It's not going to be an easy Forum Q & A thing.

    ------------------------------
    Mark Shnier (YQC)
    Quick Base Solution Provider
    Your Quick Base Coach
    http://QuickBaseCoach.com
    mark.shnier@gmail.com
    ------------------------------