Results 1 to 3 of 3

Thread: Adobe JavaScript Form Question - New to JS

  1. #1
    Join Date
    Mar 2012

    Adobe JavaScript Form Question - New to JS

    Brand new to JS.

    Working in Adobe, attempting to take a drop down field and based on the value selected I want to use a 3 digit # into a text field that is beside it. (it will be read only)

    I do not have a clue how to start this and I am not sure how to search for help on it since I am not clear what I am asking for?

    Anyone willing to point me in the right direction or explain how this script should look?

    Thank you in advance.

  2. #2
    Join Date
    Dec 2002
    St. Louis, MO, USA
    Something like:
    <script type="text/javascript">
      function updateRO(a) {
        document.forms["thisForm"].displayNumber.value = a;
    <form name="thisForm" id="thisForm">
      <select name="thisSelect" id="thisSelect" onChange="updateRO(this.value);">
        <option value="">Select</option>
        <option value="123">123</option>
        <option value="456">456</option>
        <option value="789">789</option
      <input type="text" readonly="true" name="displayNumber" id="displayNumber" size=3 />
    o . Q
    ___ "You live and you learn; or you don't live long." - Lazarus Long


  3. #3
    Join Date
    Mar 2012
    I may not have been clear enough in my initial request for assistance.

    I am using Adobe Acrobat Pro X. I created an electronic version of our current paper time sheet.

    Within Adobe fields, under properties, there is a Validate and Calculate tab.

    My goal: Based on a previous field (drop down), dependent upon the user's selection the adjacent field will populate a corresponding # to the previous field automatically.

    I do not know how to do this and I do not know enough Java or how to write it to make this work.

    All Adobe help files and training videos do not go into this area past showing the tabs so I am not sure how to figure this out.

    My current example:

    Column1 Column2

    Regular Pay 100

    I want 100 to populate if Regular Pay is selected.

    Any ideas? Links?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center