3 Replies Latest reply on Oct 14, 2014 8:02 AM by gkaiseril

    Split a FullName from drop down to two text fileds Lastname and Fitstname

    frustrared by install Level 1

      I have a drop down "drop1" and text field lastname and text field first name

      I want when a full name is selected in drop down, the last name populate in lastname field and the first name is populate in firstname field.

      trying to use below, but not working, could someone point to me what is wrong, below just tried for lastname?

       

      var f= getField(drop1);

      // Create a variable to contain the array

      var LASTNAME;

      // using the whitespaces as a criteria for splitting the string

      LASTNAME= f.split(" ");

      for(i = 0; i < mySplitResult.length; i++>)