Avatar

Correct answer by
Level 10

Take a look at the attached. The script assumes the name is a three-part string such as Dr. Frank Burns. You can modify it according to your needs.

// form1.page1.dd::exit - (JavaScript, client)


if (this.rawValue != null) {

  var doc = this.rawValue;

  var i = doc.indexOf(" ");

  doc = doc.substring(i+1,doc.length);

  this.rawValue = doc.substring(0,doc.indexOf(" "));

}

Steve

View solution in original post