Skip navigation
medic48
Currently Being Moderated

Scripting Help

Jan 15, 2012 10:33 PM

I created a form in Adobe Live Cycle and need helping on scripting.  I have a field as Drop Down list as Sample one, Sample two, Sample three , Sample four, and Sample five in that field.  I would like to have another field with 1, 2, 3, 4, and 5. Every time a user selects Sample One in the first field, the second field would auto-fill a numeric of 1.  If the user selects, Sample Two in the first field, the second field would automatically enter as 2, and so on. 

 

Is it possible to create a scripting for this? Some type of form calculation? 

 

Any help is appreciated.

 
Replies
  • Currently Being Moderated
    Jan 16, 2012 11:13 AM   in reply to medic48

    //check the following JavaScript in change event of DD1.....

    // form1.#subform[0].DD1::change - (JavaScript, client)

    if (xfa.event.newText == "Sample 1") {
    DD2.rawValue = "1";
    }
    if (xfa.event.newText == "Sample 2") {
    DD2.rawValue = "2";
    }
    if (xfa.event.newText == "Sample 3") {
    DD2.rawValue = "3";
    }

     
    |
    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