Forum Discussion

MichaelTamoush's avatar
MichaelTamoush
Qrew Captain
5 years ago

Edit Record in Pop up window?

I've found multiple threads on this but haven't been able to stumble on the solution.

Does anyone have a low-tech way to create a URL button to open a form and edit a record, but in a pop up window ?

Currently I just set a formula URL to open in new window, which gets the job done but it would be nicer if I could have it in a new window and set the size.



------------------------------
Mike Tamoush
------------------------------
  • Hi Mike!

    I just did this myself :-)

    Interestingly as soon as I added the height & width it opened in a new window vs a new tab.

    In a Formula - Rich Text field:

    var text URL = URLRoot() & "db/" & Dbid() & "?a=er&rid=" & [Record ID#];
    
    "<a class='Vibrant Success' onclick=\"window.open('" & $URL & "','Edit','width=800,height=700')\">Edit Record</a>"


    Let me know if this works for you šŸ˜Š šŸ‘



    ------------------------------
    Sharon Faust (QuickBaseJunkie.com)
    Founder, Quick Base Junkie
    https://quickbasejunkie.com
    ------------------------------
    • SamJones1's avatar
      SamJones1
      Qrew Cadet
      @Sharon Faust (QuickBaseJunkie.com) I'd be careful with that particular configuration. Onclick is a Javascript call, and those will be getting scrubbed over time. That said, you can do a very similar thing like so:

      ā€‹
      var text URL = URLRoot() & "db/" & Dbid() & "?a=er&rid=" & [Record ID#];
      
      "<a class='Vibrant Success' href='" & $URL & "' target='_blank'>Edit Record</a>"ā€‹


      That'll open in a new window, but you're not able to set the size from there.

      @Mike Tamoush, If you need more help with it, swing by Data Collaborative's free Office Hours, every Thursday at 1pm Eastern.

      Sign up here:
      https://data.quickbase.com/db/bqeqqj33i

      ā€‹

      ------------------------------
      - Sam

      ______________________________________________
      Sam Jones
      Vice President, Product and Technology
      he/him

      The Data Collaborative, Inc.
      sjones@datacollaborative.com
      366 Massachusetts Ave, Suite 203 | Arlington, MA 02474
      ------------------------------