Design an Acrobat PDF Form to Reorder QR Code Fields
Question details
The user needs a PDF interface that lets people reliably reorder fields before generating QR code data.

- 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.
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.
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.
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.
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.
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.
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.
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 Custom Acrobat Dialog for Field Ordering
Use a custom dialog when you want to collect and validate positions in a separate interface.
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.

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.




