4 Replies Latest reply on Jul 7, 2010 8:38 AM by pguerett

    Copy text from multiple fields to one field


      I would like to copy text from multiple fields into one field. Each of these smaller fields will only be allowed to have one character. The larger field will not be able to be edited.


      So far, I have thought of creating a naming heirarchy for these fields. I was going to then call upon the array of the parent and set the value of the parent to equal this array.



      var parent = this.getField("everything");
      var array = everything.getArray();
      var v;
      for(parent=0; parent<array.length; parent++)

      v = a + " " + v;               //Im guessing this line is incorrect
      parent.value = a;


      Any suggestions? or a better way of doing this.