4 Replies Latest reply on Sep 2, 2014 2:14 AM by jhon milz

    populate textbox in succession

    jhon milz

      hi everyone

      sorry for my bad English, I have a series of textboxes that are populated with buttons, but I would like that if a textbox is already occupied, the following is populated. I'm making an order for the products, and each button is a product. I'll post an example.


      var f = this.getField("cod")

      f.value = "art51";

      var f = this.getField("desc")

      f.value = "coppia di contenitori 120X80";

      var f = this.getField("prez")

      f.value = "300";

       

      i have a 10 textbox cod.0 - cod.10

                   10 textbox desc.0 - desc.10 ecc..

       

      I hope I did understand my problem and can help me thanks to all