QR Code Generator
This example file shows how to display a QR code on any layout using a Web Viewer. The Web Viewer will create a HTML table to display the QR using a local JavaScript function. Three things are required to make this work:
1. A start-up scrip that sets the HTML & JavaScript into a global field.
2. A custom function "QRCodeGeneratorHTML ( text; imagePixelDimention )". The parameters "text" is the info you want encoded in the QR code and "imagePixelDimention" is the number of pixels wide that the Web Viewer is.
3. A Web Viewer on your layout with the content set to the custom function e.g.
QRCodeGeneratorHTML ( Data::PrimaryKey; 128 )
✓ Can be used in any context
✓ No container fields required, only generates where displayed
✓ Print crisply at any size on Mac, Windows or FileMaker Go