Avatar

Level 10

Hi James,

Yes, it does. LC Designer creates different forms and has different JavaScript syntax. You are in the LC Designer forum and your query may be better answered in an Acrobat forum.

The following script should work in an AcroForm (fingers crossed):

var i = this.getField("firstName");

var j = this.getField("lastName");

var k = this.getField("combinedName");

if (i.value !== null && j.value !== null) {

     k.value = j.value + ", " + i.value.toString().slice(0,1);

}

As before, you will need to change the object references to suit your form.

Hope that helps,

Niall