Forum Discussion

ThomasEasterli1's avatar
ThomasEasterli1
Qrew Trainee
6 years ago

Forms displayed in a pop-up window

In a parent table (example: [PROJECTS]), when inside the form for adding a new record to this table [PROJECTS] is it possible to add a record to a child table (example: [TASKS]) via a button (example: the "Add Task" button) in a pop up window similar to an alert?

Unfortunately, selecting the "Open Target in New Window" option in Field Properties opens a new tab and it doesn't perform the specific action I'm looking for.

The UX that was requested is to have the new window open in a smaller pop-up window in which the the child record can be entered and then closed without leaving the original form on the parent record. 

I've been told that this is not supported, however, I was wondering if there were any known workarounds out there.


------------------------------
T$
------------------------------
  • You can use jquery dialog along with API_AddRecord to generate a nice look while never leaving the original form/report.

    See Dan's post, How To Dialog?



    ------------------------------
    Everett Patterson
    ------------------------------
    • MackenziePhilli's avatar
      MackenziePhilli
      Qrew Trainee

      Are there clearer instructions out there on how to do this? Dan's post has a lot of content but little instruction

      Thanks



      ------------------------------
      Mackenzie Phillips
      ------------------------------
    • MackenziePhilli's avatar
      MackenziePhilli
      Qrew Trainee
      This is exactly what I want to do. Would you mind sharing the code for this?

      Thanks,
      Mackenzie

      ------------------------------
      Mackenzie Phillips
      ------------------------------
  • BabiPanjikar's avatar
    BabiPanjikar
    Qrew Assistant Captain
    Thomas, currently forms to display as pop-up functionality is not in QB (to my understanding) except when you are adding a new value to drop-down for which the field is referenced from your master table, the QB will popup the form to add new value by displaying add record in master form. 

    The otherway to achieve this is to create a form using javascript and load that script on your button click. Javascript experts can jump-in here.

    ------------------------------
    Babi Panjikar
    ------------------------------
  • You can display the child table on your form and have it editable from that form rather than having to open a window or new form:

    Use these setting in your form:


    ------------------------------
    Adam Keever
    ------------------------------
    • ThomasEasterli1's avatar
      ThomasEasterli1
      Qrew Trainee
      Thank you Adam. Your solution is a good compromise that I had not considered. However, aesthetically Babi's .js button is a better solution, be it with far more work by comparison.

      ------------------------------
      Thomas Easterling
      ------------------------------
      • AdamKeever1's avatar
        AdamKeever1
        Qrew Commander
        Just an FYI, I was advised to not utilize the image on load technique and other js solutions as they would not be supported by Quick Base and may not function on mobile.

        Read more here:
        js unsupported

        ------------------------------
        Adam Keever
        ------------------------------