How to Create Conditional PDF Form Fields Without JavaScript
Question details
The user needs to display dynamic prices in a PDF form based on radio button selections, aiming for compatibility with iPad PDF readers that may not support JavaScript.

- Product
- PDF Forms
- Device & OS
- iPadOS
- Scenario
- Designing an interactive PDF form with conditional pricing based on date selection (e.g., choosing Wednesday vs. Friday).
- Observed behavior
- The goal is to dynamically update a price field based on the user's radio button choice without relying on JavaScript, ensuring cross-platform compatibility on mobile devices.
Before designing your form, verify the specific PDF reader application your iPad users will rely on, as mobile apps have varying levels of support for interactive forms and embedded scripts.
Use Export Values and Calculation Scripts
While a completely script-free dynamic PDF form isn't natively possible, the most reliable method uses standard PDF calculation functions configured through form properties.
Dynamic field values inherently require document JavaScript or calculation scripts to function. Even when using the built-in calculation tabs in advanced PDF editors, the software generates JavaScript behind the scenes. However, you can minimize complexity by using standard export values and basic calculation rules.
Open your PDF editor, enter Form Editing mode, and double-click the radio buttons. In the 'Options' tab, assign specific export values corresponding to the price for each selection.
Add a Text Field to your document where the final price will display. Double-click the new field to open its properties window.
Navigate to the 'Calculate' tab in the text field properties. Select 'Value is the' and choose 'sum (+)', then select the radio button group to automatically pull its active export value.
Save the PDF and open it in the exact iPad application your users will use (such as a dedicated PDF reader app) to ensure the calculation triggers correctly upon selection.

Use a Web-Based Form Alternative
If iPad PDF applications fail to process calculation scripts reliably, migrating to a web-based form is the best fallback for conditional logic.
Easily Create and Fill Interactive PDF Forms with WPS Office
WPS Office provides a robust PDF editor that allows you to effortlessly design interactive forms, insert radio buttons, configure text fields, and ensure high compatibility across different platforms.
- 1. Open Your PDF: Launch WPS Office and open your PDF document using the built-in WPS PDF editor.
- 2. Access Form Tools: Navigate to the 'Form' tab on the top ribbon to access all interactive field tools.
- 3. Insert Form Fields: Click on 'Radio Button' or 'Text Field' and drag your cursor on the document to place the elements.
- 4. Edit Properties: Double-click the inserted fields to configure their properties, assign export values, and customize their appearance.

Frequently Asked Questions
Why doesn't my PDF calculation work on an iPad?
Many default PDF viewers on iPads (like Apple's built-in Preview or Files app) have limited support for embedded JavaScript and form calculations. To ensure calculations work, users often need to open the PDF in dedicated, fully-featured PDF reader applications.
Can I use CSS or HTML for logic inside a PDF form?
No, standard PDF documents do not support HTML or CSS for conditional logic. Interactive PDFs rely exclusively on Acrobat-compatible JavaScript and built-in calculation functions for dynamic behaviors.
Is there any way to make a PDF form dynamic without using scripts?
No, fully dynamic features like changing a price automatically based on a radio button selection fundamentally require scripts to execute the logic. Even visual calculation builders in PDF editors write JavaScript code in the background to make this happen.




