How do I select a value form combo box list inside a PDF and check dependent checkbox

Posted on 2011-04-18
Last Modified: 2012-05-11
How do I select a value from combo box list inside a PDF and check dependent checkbox based on user selection.  I believe the tool requires javascript.

Thank you for you help.
Question by:Elliott Ward
    1 Comment
    LVL 44

    Accepted Solution

    Create your drop down list and bring up the preferences for that object. Select the "Options" tab and select "Commit selected value..." (that is, besides specifying the items). Then go to the Validation tab and select to create a custom validation script.

    Use the attached script. The script assumes that the checkboxes are called CheckBox_One, CheckBox_Two and CheckBox_Three. This works for a single selection, but if your dropdown list allows multiple selected items, the whole thing gets a bit more complicated.

    event.value == "One" ? this.getField("CheckBox_One").value = "Yes" : this.getField("CheckBox_One").value = "No";
    event.value == "Two" ? this.getField("CheckBox_Two").value = "Yes" : this.getField("CheckBox_Two").value = "No";
    event.value == "Three" ? this.getField("CheckBox_Three").value = "Yes" : this.getField("CheckBox_Three").value = "No";

    Open in new window


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    One of the questions I get asked again and again is how to validate a field value in an AcroForm with a custom validation script. Adobe provided a lot of infrastructure to do that with just a simple script. Let’s take a look at how to do that wit…
    The Adobe PDF proprietary file format is recognized as secure and formulated. But these PDF files are also prone to corruption and any external threat like virus attacks, improper storage can hit PDF file integrity.This type of damages can make cruc…
    In this third video of the Xpdf series, we discuss and demonstrate the PDFtoText utility, which converts PDF files into plain text files. Download and install the software.: You may have already downloaded and installed the Xpdf tools while watching…
    In this video, we show how to convert an image-only PDF file into a PDF Searchable Image file, that is, a file with both the image (typically from scanning) and text, which is created in an automated fashion with Optical Character Recognition (OCR) …

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now