Skip navigation
Dean Bruyere
Currently Being Moderated

if then statement is what i believe i may need

Apr 23, 2012 1:22 PM

I have a drop down list with several items in it, i would like another textfield to display an universal number if i select one of the specific items in my dropdown list,, I am really new at this and learning

 
Replies
  • Currently Being Moderated
    May 10, 2012 3:52 AM   in reply to Dean Bruyere

    You can control for each item.  Please provide what you would want in the droplist and the values to display and I'll build a quick sample

     
    |
    Mark as:
  • Currently Being Moderated
    May 10, 2012 6:55 AM   in reply to Dean Bruyere

    The event is set to "initialize" and this is javascript on the droplist object:

    Assuming you have textfields named AC & GL.

     

    var sNewSel = this.rawValue;

     

    switch (sNewSel)

    {

      case "Aboriginal Diabetes Initiative":

        xfa.form.form1.BodyPage1.AC.rawValue="KC01";

        xfa.form.form1.BodyPage1.GL.rawValue="76721";

        break;

    }

     

    Copy the script and add your other options between the brackets

     
    |
    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