21 Replies Latest reply on Jan 5, 2011 9:51 AM by try67

    Combo box populates text box

    woodtd Level 1

      Greetings,

        Any assistance is appreciated.  I have a combo box with four choices, regrdless of the choice made, I would like the choice to be sent to a text field.  I have tried a few things but really am lost as to how to get this to work.  I initially tried the code but the syntax is obviously wrong but I don't know wto fix it.

       

      function setchoice()

      {

           if(event.willCommit)

           {

           var choice = this.getField("options").event

           this.getfield("Textfieldchoice") .setItems(choice);

           }

      }

       

      Any assistance is  would be greatly appreciated.

       

      Sincerely,

      Tim