Skip to main content
Question

Open Print dialog when clicking "print exact form" button

  • September 24, 2020
  • 0 replies
  • 68 views

Forum|alt.badge.img+10
Ok, I've gotten this to work with regular forms before, but I cannot get this to work with an exact form. I have a button to open the form in a new window and, on regular forms, it automatically fires the print dialog. However, trying the same syntax does not work with the exact forms button. Here is what my code looks like:

URLRoot() & "db/" & Dbid() & "?a=dbpage&pagename=" & URLEncode("Work Order Cover Sheet .html") & "&clist=a&apptoken=XXX&rid=" & "?a=printr&rid=" & [Record ID#]​


Of course I've XXX'd out the app token above. (it doesn't even require them, but this button was auto-generated) Any ideas why this won't work?



------------------------------
Thanks,
Chris Newsome
------------------------------

Forum|alt.badge.img+8
  • Quickbase Alumni
  • September 24, 2020
The only way I managed to get the print dialog to auto-open for an exact form that I created was, I believe, to embed it into the html of the page after the initial upload.

Unfortunately, this would tell chrome to generate a printable version of the page while it was still processing - leading to a page full of field tags (~x~) instead of the data.  

It was about a year or so ago that I left well-enough alone on it, but it couldn't hurt to explore it again.  I'll let you know what I find out.

------------------------------
Brad Lemke
------------------------------