Forum Discussion

QuickBaseCoachD's avatar
QuickBaseCoachD
Qrew Captain
6 years ago

Add Record screen popping up in a smaller window?

When pushing an ?add record? button, is there a way to make the popup windows smaller than the regular window, like QB sometimes does?
  • 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
    • ThomasEasterli1's avatar
      ThomasEasterli1
      Qrew Trainee
      unable to get this to work. rather it opens a new tab.

      ------------------------------
      Thomas Easterling
      ------------------------------
  • 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
    ------------------------------