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
------------------------------
Sign up
Already have an account? Login
Login to the community
Login with Quickbase US – quickbase.com Login with Quickbase EU – quickbase.eu
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.