Displaying a generated QR code within your form or in the automatically generated PDF can be very useful. This guide will show you how to generate and display a QR code on your form, and provide a practical example of displaying a QR code that opens the form response itself. This allows anyone accessing the submission’s PDF to scan the QR code and view or edit the submission.
Add an HTML Component: Drag and drop an HTML component into your form.
Insert QR Code Generation Code: In the “Content” setting of the HTML component, insert the following code to generate a QR code containing the form’s ID:
<img src="https://api.qrserver.com/v1/create-qr-code?data={{TF_RESPONSE_ID()}}"/>
AI-generated code. Review and use carefully. More info on FAQ.
Generate a QR Code for Form Response: To generate a QR code that directly opens the form response, replace the value of the
data
parameter with the URL to the response. The final HTML code should look like this, withinsertTeamId
andinsertFormId
replaced with your specific identifiers:<img src="https://api.qrserver.com/v1/create-qr-code?data=https://web.teamforms.app/teams/insertTeamId/forms/insertFormId/response/{{TF_RESPONSE_ID()}}"/>