Forum Discussion

JeffPeterson1's avatar
JeffPeterson1
Qrew Captain
5 years ago

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
------------------------------
  • 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
    ------------------------------
    • JeffPeterson1's avatar
      JeffPeterson1
      Qrew Captain
      It still takes me to the Dispatches Table where  I must click 'Save & Close' (once I do this I'm returned to the parent record though).  Is there a way to do this without the user even leaving the parent record?

      ------------------------------
      Jeff Peterson
      ------------------------------
      • MarkShnier__You's avatar
        MarkShnier__You
        Icon for Qrew Legend rankQrew Legend
        Are you asking if you can have a separate little pop up window to add the dispatch and then that pop up would close when you save the dispatch?

        if so, the answer is "no", it would be nice to have that functionality, but we do not have that functionality at this time.  You would need to put tat into a UserVoice suggestion.

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