Skip to main content
All CollectionsFAQsBuilding 👷‍♂️
Display a QR Code in your form
Display a QR Code in your form

Lets explore how to display a QR code within your form.

Updated over 4 months ago

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.

  1. Add an HTML Component: Drag and drop an HTML component into your form.

  2. 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.

  3. 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, with insertTeamId and insertFormId 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()}}"/>



Did this answer your question?