Other PDF Issues

Design an Acrobat PDF Form to Reorder QR Code Fields

Muhammad TalhaMuhammad Talha Nov 19, 2026 868 views

Question details

The user needs a PDF interface that lets people reliably reorder fields before generating QR code data.

Design an Acrobat PDF Form to Reorder QR Code Fields
Product
Adobe Acrobat PDF forms
Device & OS
not provided
Scenario
Users review and reorder multiple form fields before finalizing a PDF containing a QR code.
Observed behavior
The desired interface validates field positions and generates QR code data in the selected order.
Before you start

List the fields to include in the QR code and decide how their values will be separated in the encoded data. Check that the intended PDF viewer supports the JavaScript and barcode features your form will require.

Solution 1Recommended

Use a PDF Form Page to Rank and Validate Fields

Use a visible form-based interface when users need to review and reorder many fields.

Assign each field a numeric position, then sort the field values by position when building the QR code payload. This approach requires custom Acrobat JavaScript and a compatible method for generating or updating the QR code.

1
Create the form fields

Open the PDF in Acrobat and choose Tools > Prepare a Form. Add a clearly labeled value field and a position field for each item users can include.

2
Set position inputs

Open each position field's Properties and set its format to Number. Show the allowed range, such as 1 through the number of fields, beside the inputs.

3
Add validation and ordering

In Prepare a Form, add a button and use its Properties > Actions settings to run Acrobat JavaScript. Have the script reject blank, out-of-range, or duplicate positions, then sort the values by their positions.

4
Preview and generate

Add a read-only preview field and update it with the sorted payload. Connect the payload to a supported QR code generation method, and provide a separate reset button for the position fields.

5
Test the finished form

Use Preview in Prepare a Form to test valid and duplicate positions, reset behavior, and the encoded QR data. Open the saved PDF in the intended viewer and scan the QR code to verify its contents.

Use a PDF Form Page to Rank and Validate Fields
Check barcode support: QR code creation and updates depend on the barcode method, Acrobat features, and viewer permissions. Sorting field values alone does not create a QR code.
Free Microsoft Office alternative

Prepare PDF Form Content with WPS Office

WPS Office is a free, lightweight alternative for preparing documents and PDF content in a familiar interface. Open compatible Office files to continue existing work, then export your document to PDF. Acrobat-specific JavaScript and dynamic QR code form behavior still require a compatible PDF tool.

Prepare labels and instructions for a QR code formOpen and edit compatible Microsoft Word, Excel, and PowerPoint formatsExport document content to PDFWork in a familiar interface when moving from Microsoft Office
QA img-9

Frequently Asked Questions

How can I prevent users from assigning the same position twice?

Add validation to the button script that reads the position fields. If two fields have the same number, display a message and stop before generating the QR code payload.

Can an Acrobat custom dialog use a native drag-and-drop list?

Acrobat custom dialogs do not provide a native drag-and-drop list. Numeric positions or selection controls are simpler options; a drag-and-drop-like interface requires custom JavaScript and testing.

Does sorting the fields automatically create a QR code?

No. Sorting produces an ordered payload; you must also connect that payload to a supported QR code generation method and verify that it works in the intended PDF viewer.

How should I check that the QR code contains the right data?

Use the form's preview to compare the ordered payload with the selected positions, then scan the generated QR code and compare its decoded content with the preview.