Skip navigation
Currently Being Moderated

Autopopulate based on selection

Jul 31, 2012 9:52 AM

Let's say I have a form with a drop-down list field called "Hardware". Is it possible to have the next field (a text field?) "autopopulate" the Serial Number for the hardware chosen...preferably w/o having to get into writing code?!

 
Replies
  • Currently Being Moderated
    Jul 31, 2012 10:26 AM   in reply to CelestialPickles

    Hi,

     

    yes this is possible with the boundItem property, but you'll need at least one script.

     

    1. Create a DDL with your elements

    2. Define the bound items of the value in the binding tab of the Object palette.

    3. Add this script (its language is FormCalc not JavaScript) in the change event of the DLL:

     

    Textfield1.rawValue = $.boundItem(xfa.event.change)
    
     
    |
    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