Forum Discussion

EricFixler1's avatar
EricFixler1
Qrew Trainee
4 years ago
Solved

Add Record -POPUP Window size

What would be the correct syntax to add to this formula to designate the dimensions of the popup window ?
 
URLRoot() & "db/" & [_DBID_CONTACTS] & "?a=API_GenAddRecordForm&_fid_12=" & URLEncode ([Record ID# - Company])& "&z=" & Rurl()




------------------------------
Eric Fixler
------------------------------
  • Try this syntax as a Rich Text Formula field


    var text URL=  ... your URL goes here;

    "<a class='Vibrant Success OpenAsPopup' data-height=500 data-width=500 data-refresh=true href=\"" & $url & "\" >your button words go here </a>"

    ------------------------------
    Mark Shnier (YQC)
    [email protected]
    ------------------------------

6 Replies

  • AustinK's avatar
    AustinK
    Qrew Commander
    It is either no longer possible natively or the answer is in here towards the bottom. https://community.quickbase.com/communities/community-home/digestviewer/viewthread?MessageKey=93aaf152-6cbc-448c-aec2-5486acd65019&CommunityKey=d860b0f8-6a48-487b-b346-44c47a19a804&tab=digestviewer

    There is also a post there by Juiced Tech in which they say they have a solution but that is likely a paid solution just to prepare you. Good people over there though.
    • MarkShnier__You's avatar
      MarkShnier__You
      Icon for Qrew Legend rankQrew Legend
      Try this syntax as a Rich Text Formula field


      var text URL=  ... your URL goes here;

      "<a class='Vibrant Success OpenAsPopup' data-height=500 data-width=500 data-refresh=true href=\"" & $url & "\" >your button words go here </a>"

      ------------------------------
      Mark Shnier (YQC)
      [email protected]
      ------------------------------
  • Marks solution should work. That thread was when they first released the Openaspopup class. At first, they did not have a way to control the size of the popup - hence the thread.

    But shortly after that thread, they released a way to control the size AND whether or not the page you launched from refreshes when you close the popup (thats the data-referesh=true part).

    ------------------------------
    Mike Tamoush
    ------------------------------
    • EricFixler1's avatar
      EricFixler1
      Qrew Trainee
      Thanks for the help. Works perfectly.
      Eric

      ------------------------------
      Eric Fixler
      ------------------------------
      • SamNolette's avatar
        SamNolette
        Qrew Member

        Hi Eric.

        I've been doing this for a little while now, applying what I learn but I still consider myself a beginner.  I ran into the same question trying to solve a formatting problem.  Would you be willing to share what the Rich Text Formula ended up looking like?

        Thank you.

        Sam Nolette



        ------------------------------
        Sam Nolette
        ------------------------------