Skip to main content
Question

Button to open a specific form without using the API_GenAddRecordForm API

  • March 9, 2022
  • 0 replies
  • 84 views

Forum|alt.badge.img+8
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
------------------------------
This topic has been closed for replies.

MarkShnierYou
Forum|alt.badge.img+24
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
------------------------------