JeffPeterson1
5 years agoQrew Captain
Allow users to save and close a form on another page without leaving current form?
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
------------------------------
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
------------------------------