Forum Discussion

EricFixler1's avatar
EricFixler1
Qrew Trainee
3 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)
    mark.shnier@gmail.com
    ------------------------------

6 Replies

    • 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)
      mark.shnier@gmail.com
      ------------------------------
  • 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
        ------------------------------