Skip navigation
Currently Being Moderated

Can Acrobat Fields Autopopulate other than Calculations?

Jul 28, 2012 4:39 PM

I know that Acrobat 10.0 can do calculations, but can a form be designed so that when one text field has a selection, another text field will populate based on the information in the first field?

 
Replies
  • George Johnson
    9,224 posts
    Aug 11, 2002
    Currently Being Moderated
    Jul 28, 2012 5:41 PM   in reply to opub

    Sure. If you provide more details about exactly how you want it to behave, someone can suggest a specific script.

     
    |
    Mark as:
  • George Johnson
    9,224 posts
    Aug 11, 2002
    Currently Being Moderated
    Jul 30, 2012 3:42 PM   in reply to opub

    To set the value of a field in the Mouse Up event of a check box, do something like this:

     

    // Set the value of a text field to the export value of this check box if selected

    var val = event.target.value;

    var f = getField("Text1");

     

    if (val !== "Off") {

        f.value = val;

    } else {

        f.value = "";

    }

     

    This code will work with a radio button group, check box, combo box (dropdown), and listbox if the export value of the check box match the button/export value of the other field, but the last line should be changed to:

     

    f.value = "Off";

     

    for radio buttons and check boxes, and the default value for combo boxes and listboxes.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 30, 2012 3:55 PM   in reply to opub

    You want a lot of coding and have not provided enough details.

     

    We need field names, values, and the logic on how to apply them.

     

    You can create the various form fields in Acorbat  or LiveCycle Designer and assignig the value to be exported when an option is selected or a check box/radio button is sellected.

     

    Creating Radio CheckBoxes

     

    Manipulating the choices in dorp down list requires more advanved coding than acessing a simple value.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 1, 2012 8:17 AM   in reply to GKaiseril
     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points