Create a Scored PDF Form with Choice Values in Adobe Acrobat
Question details
Create a PDF form with single-choice answers assigned numeric values and a final total score.

- Product
- Adobe Acrobat Pro
- Device & OS
- not provided
- Scenario
- A form uses choices such as Never, Sometimes, and Always for each question, with respective values of 0, 1, and 2.
- Observed behavior
- Each question should allow one answer, and a score field should add the selected values.
Open the PDF in Adobe Acrobat Pro and make a list of the questions and their field names. This method uses radio buttons and a custom calculation script, so test the finished form in a PDF viewer that supports form JavaScript.
Use radio-button groups and a calculated score field
Use this method to assign one numeric value per answer and add the answers across multiple questions.
In Adobe Acrobat Pro, open the PDF and select All tools > Prepare a form.
Add three radio buttons for the first question and give them the same field name, such as Q1. Add visible labels for Never, Sometimes, and Always. Repeat for the other questions, using a different group name for each, such as Q2 and Q3.
Open each radio button's Properties and use the Options tab to set its Radio Button Choice or export value. Assign 0 to Never, 1 to Sometimes, and 2 to Always. Keep the values distinct within each group.
Add a text field named Score. In its Properties, open Calculate, select Custom calculation script, and choose Edit. Enter: var names = ["Q1", "Q2", "Q3"]; var total = 0; for (var i = 0; i < names.length; i++) { var f = this.getField(names[i]); if (f && f.valueAsString !== "Off") { var n = Number(f.valueAsString); if (!isNaN(n)) total += n; } } event.value = total; Change the names in the array to match all of your question groups.
Select Preview in Prepare a form and choose answers in each group. Verify that only one choice is selected per question and that Score equals the sum of the selected values. Save the PDF.

Review PDF Forms and Work with Office Files in WPS Office
WPS Office is a free, lightweight alternative for everyday document work, with a familiar interface and Microsoft Office format compatibility for easier migration. Use its PDF tools to open and review forms; creating the calculated Acrobat form requires a compatible form editor.

Frequently Asked Questions
Why do the radio buttons for one question need the same name?
Giving the buttons the same field name makes them a single group, so the user can select only one answer for that question. Use a different name for each question.
Where do I assign 0, 1, and 2 to the answers?
In Acrobat's Prepare a form tool, open each radio button's Properties and set its Radio Button Choice or export value on the Options tab.
Why is the total not updating?
Check that the names in the Score field's Calculate script exactly match the radio-button group names. Also test the PDF in a viewer that supports PDF form JavaScript and calculations.
Does a score of zero mean every question was answered Never?
Not necessarily. The sample script also counts unanswered questions as zero. Add separate validation if respondents must answer every question.




