Discussions

 View Only
  • 1.  Add Record screen popping up in a smaller window?

    Posted 03-26-2019 17:26
    When pushing an ?add record? button, is there a way to make the popup windows smaller than the regular window, like QB sometimes does?


  • 2.  RE: Add Record screen popping up in a smaller window?

    Posted 03-26-2019 23:41
    Are you referring to the way that Quick Base does the pop-up window when you opt to create a new record from a record picker? So instead of doing a true genAddRecordForm like most default buttons - have it be a pop up?

    If yes - you can just mimic the behavior that QB does from a record picker like so:
    var text url = "https://qbrealm.quickbase.com/db/dbid?a=GenNewRecord&bg=1";
    "<a style='width: 150px;border-color:black; text-decoration: none; background:#3761a2;color:white;' class='btn btn-sm btn-primary' href='" & $url & "'" & 
    " target='_blank'>ADD NEW</a>"
    The bg=1 is truly what does it I believe. 

    Chayce Duncan | Technical Lead
    (720) 739-1406 | chayceduncan@quandarycg.com
    Quandary Knowledge Base


  • 3.  RE: Add Record screen popping up in a smaller window?

    Posted 03-26-2019 23:52
    Much appreciated, I will see if I can get that working.


  • 4.  RE: Add Record screen popping up in a smaller window?

    Posted 10-30-2019 18:01
    unable to get this to work. rather it opens a new tab.

    ------------------------------
    Thomas Easterling
    ------------------------------



  • 5.  RE: Add Record screen popping up in a smaller window?

    Posted 11-01-2019 17:30
    Test this out in a formula rich text, change [Add Record] to your add record button and edit the height/width you want. The user will have to close the smaller window after saving.

    "<a class=\"Vibrant Primary\" href=\"\" onclick=\"window.open('"& [Add Record] & "','name', 'width=600,height=400')\">Add Record New Window</a>"​


    ------------------------------
    Everett Patterson
    ------------------------------