Skip to main content
Question

Allow users to save and close a form on another page without leaving current form?

  • September 23, 2020
  • 0 replies
  • 135 views

SSNJeffP
Forum|alt.badge.img+11
I have a form where the users fill in some info,  then click a button called 'add dispatch'.     currently, the button takes them to another table where they must use the green save and close button, then they are left there in view mode.

How would I write this to make it so that they can add the record, save, close and either return to or stay on the originating page?

Here's the code I currently have:

var bool noRepSelected = If(Trim([Field Rep - Name])="", true);
var bool noScheduleDate = IsNull([Schedule Date]);
var bool noAppTemplate = If(Trim([App Template - Template Name])="", true);
var bool activeDispatch = If([Active Dsps]=0, false, true);
var text dispatchButton = URLRoot() & "db/" & [_DBID_DISPATCHES] & "?a=API_GenAddRecordForm&_fid_7=" & URLEncode ([Item #]);


If($noRepSelected=true or $noScheduleDate=true or $noAppTemplate=true or $activeDispatch=true,"",$dispatchButton)

Any help is appreciated!

------------------------------
Jeff Peterson
------------------------------

MarkShnierYou
Forum|alt.badge.img+24
try this


var text dispatchButton = URLRoot() & "db/" & [_DBID_DISPATCHES] & "?a=API_GenAddRecordForm&_fid_7=" & URLEncode ([Item #]) & "&z=" & Rurl();

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