Forum Discussion

TylerFoy81's avatar
TylerFoy81
Qrew Trainee
20 days ago

URL Add Related Form (But popup like embedded Reports)

I am trying to make a URL Button to add a child record in a form Example:

URLRoot() & "db/" & DBID & "?a=API_GenAddRecordForm&_fid_13=" & ToText([Record ID#])& "&dfid=10&popup=1"

I also tried:

URLRoot() & "db/" & DBID & "?a=API_GenAddRecordForm&_fid_13=" & [Record ID#] & "&target=popup&popupwidth=500&popupheight=400"

 

I also tried these checking In Same Page, In New Window, And In Pop Up.but the button does not pop up like the embedded report. is it possible to make a button that works this way on PC and Mobile as it does in the Report button Link?

 

5 Replies

  • You can do this using a formula rich text field. Something like this

    "<a class='Vibrant Success OpenAsPopup' data-height=500 data-width=500 data-refresh=true href='" & 
    URLRoot() & "db/" & DBID & "?a=API_GenAddRecordForm&_fid_13=" & ToText([Record ID#]) & "&dfid=10" & 
    "'>Add Record</a>"

     

    • TylerFoy81's avatar
      TylerFoy81
      Qrew Trainee

      Thank you! this should work for now on mobile for what I am trying to do! I wish they had a feature that you could easily get the form pop up to work and have the parent form in the background 

      • Roy-Wanyoike's avatar
        Roy-Wanyoike
        Qrew Captain

        There is that option on the web am not sure of the mobile. In the formula url you have an option to make it a button and select the behavior. On the open target options  you have 3 options: 
        - In Same page
        - In new window
        - In popup