How to Calculate Risk Scores and Display Text in PDF Forms
Question details
The user needs to calculate a numeric risk score from drop-down menu selections in a PDF form and display a corresponding text category (e.g., Low Risk, High Risk) based on the total value.

- Product
- Adobe Acrobat / PDF
- Device & OS
- not provided
- Scenario
- Creating a dynamic risk assessment PDF form that evaluates user drop-down choices and outputs a summarized text category automatically.
- Observed behavior
- The user is trying to map drop-down options (which contain text and numbers) to a calculated total, and then use that total to conditionally output a descriptive text string.
Ensure you have access to a desktop PDF editor with advanced form creation tools that support JavaScript custom calculation scripts.
Use Export Values and a Custom Calculation Script
Assign numeric export values to your drop-down options, calculate the sum in a separate field, and use a JavaScript conditional statement to display the final text category.
Instead of relying on visible drop-down text labels (like '5 - Extreme') for calculations, PDF forms allow you to assign hidden numeric export values to each option. This enables the form to perform mathematical calculations and then run a script to convert the numerical total into a text category.
Open your PDF form in edit mode and double-click the drop-down field to open its Properties. Under the Options tab, set your 'Item Name' (the visible text) and ensure the 'Export Value' is set to a strict number (e.g., 1, 2, 3).
Add a new Text Field to act as your numeric total. In its Properties, go to the Calculate tab, select 'Value is the sum of the following fields', and pick the drop-down fields you just configured.
Add another Text Field where the final risk category (e.g., 'Low Risk') will appear. You may want to set this field as Read-Only in the General tab.
In the final text field's Properties, go to the Calculate tab and select 'Custom calculation script'. Enter a JavaScript conditional statement that reads the total field and outputs the corresponding text. Click OK and close the editor to test.

Fill and Manage PDF Forms with WPS Office
WPS Office provides an excellent, lightweight PDF toolkit for filling, managing, and interacting with dynamic PDF forms. Whether dealing with calculated risk assessments or standard business documents, WPS PDF ensures your forms are processed accurately and efficiently.
- 1. Open your PDF Form: Launch WPS Office and open your interactive PDF file containing the risk assessment form.
- 2. Interact with Drop-downs: Click on the drop-down menus to select your risk factors. WPS PDF handles the built-in form behaviors seamlessly.
- 3. Save the Completed Form: Once the calculations execute and the form is filled, click 'Save' to securely preserve the inputted values and results.

Frequently Asked Questions
Why isn't my PDF form calculating the total score correctly?
Ensure that all fields included in the calculation have numerical 'Export Values' assigned in their properties. If you are using text labels without export values, the mathematical calculation will fail.
How do I hide the numeric total field so users only see the text?
Open the Properties of the numeric total field, navigate to the General tab, and change the 'Form Field' property from 'Visible' to 'Hidden'. The field will still calculate in the background but will not be visible on the page.
Do custom PDF calculation scripts work on all mobile devices?
Advanced JavaScript calculation scripts may not be fully supported on all third-party mobile PDF readers. For guaranteed functionality, it is recommended to fill out dynamically calculated forms using a desktop PDF application.




