Create a PDF QR Code from a Form Field and URL in Acrobat
Question details
Create a QR code in a PDF form that contains a URL built from a fixed address and another field's value.

- Product
- Adobe Acrobat PDF forms
- Device & OS
- not provided
- Scenario
- A user enters a value in a PDF form, and the QR code should open the corresponding web page.
- Observed behavior
- The QR code should encode one complete, valid URL and update when the form value changes.
Open the form in an Acrobat version that supports editing form fields and check whether its barcode field supports QR codes and custom values. Identify the fixed URL and the exact name of the field containing the value to append.
Build the URL in a calculated field and encode it as a QR code
Use this approach when the PDF form editor supports a QR barcode field that can encode a calculated field's value.
The URL must be encoded as one complete string. Two separate QR codes will not combine into a single hyperlink.
In Acrobat, open All tools > Prepare a form. Add or identify the input text field and name it id, then add a second text field named url.
Open the url field's Properties, select Calculate, and choose a custom calculation script. For a URL whose last path segment is the input value, use: var v = this.getField('id').valueAsString; event.value = v ? 'https://example.com/item/' + encodeURIComponent(v) : ''; Replace the example address with your actual base URL.
In Prepare a form, add a barcode field and open its Properties. Select QR Code and configure its value or calculation to use the url field, if those options are available. Use an encoding that produces the URL alone rather than extra field names or data.
In Prepare a form, use More > Set Field Calculation Order if available. Make sure the url field is calculated before the barcode field.
Save the PDF, enter a sample value in id, and scan the QR code with multiple scanners. Confirm that each scanner reads the complete URL and opens the intended page; also test the PDF in the viewers your recipients will use.

Insert a static QR code for a fixed field value
Use a static image when the value is known in advance and the QR code does not need to update inside the PDF.
Edit PDF documents and Office files with WPS Office
WPS Office is a free, lightweight alternative with a familiar interface for working with PDF and Microsoft Office files. It can help with everyday document editing and migration, but it does not replace the Acrobat-specific dynamic QR form setup described above.

Frequently Asked Questions
Can one QR code contain both the base address and the form value?
Yes. Combine them into one complete URL in a calculated text field, then configure the QR field to encode that field's value if the form editor supports it.
Why does the QR code not update in a browser PDF viewer?
Browser and mobile PDF viewers may not support Acrobat JavaScript or dynamic barcode updates. Open the form in Acrobat and test it there, then verify behavior in each viewer your recipients use.
What if the field value contains spaces or special characters?
For a value appended as one URL path segment, use encodeURIComponent on the value in the calculated field's script. Check the resulting URL in a browser before relying on the QR code.
Can I use two QR codes to create one hyperlink?
No. Each QR code is scanned separately. Encode the complete URL in one QR code so the scanner can recognize it as a single destination.




