Forum Discussion

AngelRodriguez's avatar
AngelRodriguez
Qrew Assistant Captain
3 years ago

Button to open a specific form without using the API_GenAddRecordForm API

Is there a way to open a specific form from an existing form without using the API_GenAddRecordForm API?

For example, I'm using form #10, but I created a clone form #11 that's more printer friendly and removed some fields. I then added a formula button on form 10 to print form 11. I'm wondering if there's a way to do this without using that addrecordform API since I'm not adding a new record. You'll see in my formula I'm referencing the form to open, but the button is simply opening the existing form:

"<a class=\"OpenAsPopup\" data-height=900 data-width=900 href='" 
    & Dbid()
    & "?a=API_EditRecord&rid=" & [Record ID#] // PO Record ID
    & "&dfid=11" // Printable form ID
    & "&z=" & Rurl() // Redirect
    & "&apptoken=<"/MY APP TOKEN"/>" &
    "&rdr=" & URLEncode(URLRoot() & "db/" & Dbid()
    & "?a=dr&rid=" & [Record ID#]) 
& "'><img src=\"https://images.quickbase.com/si/24/058-printer.png\"></a>"​
​​







------------------------------
AR
------------------------------

2 Replies

  • Try this as a simple formula URL button to print on Form ID#11

    URLRoot() & "db/" & dbid() & "?a=printr&dfid=11&rid=" & [Record ID#]


    ------------------------------
    Mark Shnier (YQC)
    mark.shnier@gmail.com
    ------------------------------
    • AngelRodriguez's avatar
      AngelRodriguez
      Qrew Assistant Captain
      Hi Mark! It looks like that worked! Thank you!

      ------------------------------
      AR
      ------------------------------