Generate a PDF for saving/printing inside the form

From the latest beta and next Collect release, this is a worked example of a form utilising the new printer appearance for a text field.

With thanks to @Grzesiek2010 for the example repeat join

The attached zip contains an example form and an image, which is an example of collecting parent fields plus fields within a repeat and then combining all of this into a PDF that can be immediately printed out or saved as PDF, including generating a QR code to identify the document and link it to the record and displaying captured images.

Notes

  • I don't yet know how to refer to internal form media in the html so I have had to dynamically load a reference image to an image widget, and enforce annotation (open, save) and then use that submission image as the logo on the report
  • This is a barebones PDF with very little styling

print-widget-demo.zip (79.2 KB)

5 Likes